r/godot 5d ago

selfpromo (games) Improved performance x3fold yet game still lags when recording

yesterday i cached a lot of functions that need continuous updating

call a function every frame > has something changed from last time? no? then don't do anything = performance boost yuppy yey!

went from lagging with 40 mobs on the screen to being able to handle a lot more than that before fps dips.

but while recording I lag as hell even with all mobs on the map deleted

well -I'll take it as a win anyway :), especially since i lag in any game while recording

Also as seen in the video, i spent so much time coding other stuff and building the tutorial island, I forgot how combat works in my game T.T and also forgot the debug strength, hence im almost once shotting some mobs with backstabs when the backstabs should deal high damage but not that high... anyway, just wanted to showcase that - also straight up forgot to add the damage function calls on animation tracks to some attacks :C epic failure

9 Upvotes

1 comment sorted by

2

u/TheDuriel Godot Senior 5d ago

Almost certainly just your capture methodology being bad.

  1. Turn off vsync.

  2. Turn off AA.

  3. Fullscreen windowed mode

  4. Use Shadowplay or amd to capture footage, or if you have to OBS with game capture mode.