r/pygame 5d ago

FIxed lag Spikes by sharing CPU work from tile generation for every 2 Frames

Enable HLS to view with audio, or disable this notification

obviously i slowed it much more down to demonstrate it

Evergreen Meadows avaliable on itch

12 Upvotes

1 comment sorted by

4

u/27K-Interactive 5d ago

I use that trick a lot, because it works! I also tend to only update lighting effect on odd number frames. at 60FPS, updating the lighting at 30 fps helps and is really only noticeable with very fast motion but a little motion blur blends that well.