Jump to content

Recommended Posts

Hello, I have a question :)!

So, I was wondering which one of these would cause less lag.. Having multiple perodic tasks for different things or making 1 perodic task with everything in it, or does perodictask not hurt framerate at all (like a .5 perodic task)?

If someone could tell me that would be very great :D!

Edited by SuperDavid

Spike load will always be more noticeable than having a bunch of small loads done over time.

But this depends if your load is concurrent or not.

Lag is generated from the inability to keep a constant tickrate, and having a spike load could make the program miss a tick in its time critical state.

 

For instance, Klei made rabbits change fur randomly between 0 and 0.5 seconds from the event that fired.

If there are a lot of rabbits then the fur change will uniformly happen over the half a second instead of doing it all on that one frame.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...