. . . Posted November 24, 2016 Share Posted November 24, 2016 (edited) 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 ! Edited November 24, 2016 by SuperDavid Link to comment https://forums.kleientertainment.com/forums/topic/71965-solved-question-about-doperodictask/ Share on other sites More sharing options...
CarlZalph Posted November 24, 2016 Share Posted November 24, 2016 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. Link to comment https://forums.kleientertainment.com/forums/topic/71965-solved-question-about-doperodictask/#findComment-841158 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now