Home Creators Posts Import Register Favorites Logout

Content

v0.9.8 focuses on solving a lot of the issues we've seen so far with regards to performance, choppiness, lags, crashes and so on (both on Windows and Android). It will probably be less of a big change on high end devices, but in a lot of other cases I think the improvements will be palpable.

Some people were kind enough to test a few of my prerelease versions, and have confirmed things did get better (in one particular case we went from crashing and lagging to smooth gameplay).

First of all, I managed to reduce the memory footprint by about 20% (or more, in certain cases - this translates into at least 0.5GB less RAM consumption). This will reduce the potential for crashes, especially on Android devices that have reduced amounts of memory by today's standards. The changes made? I came up with a smarter way of loading arenas, character definitions / outfits are now loaded as needed (just in time) without affecting performance. I also turned on VRAM compression for some of the existing textures, and fixed a memory leak happening when loading animations (plus fixed a few other smaller ones).

The other big thing concerns an issue that had been there from the very beginning. This one affected performance quite badly, but was pretty sneaky in terms of how it did it. It manifested as choppiness and lags, causing huge frame times every half a second to a second, leading to multiple frames being dropped in the process. This was less apparent on high end systems, but pretty obvious on anything less powerful. However it didn't really show as a fps drop (it probably got smoothed out by the fps counter logic). Turns out the reason was setting the loop mode for each animation being played (huh!) - which caused Godot to invalidate the animation cache and rebuild it. I fixed this by assigning predefined loop modes as needed for all the animations in game. The result is a significantly smoother gameplay, even when the fps drops below e.g. 20. You can also see it in terms of slightly higher fps overall.

I also made a few other performance enhancements, but these will probably be felt only on less powerful devices: cache bone indices to avoid searching for various bones every frame, change the way animation timelines are being handled internally, stop allocating / deallocating strings for weight based selection to avoid garbage collection spikes, and a few other minor things.

Comments

Waterlemon

Just tried out, HUGH improvement. Nice job!

dna

Happy to hear that :) If I may ask, since I don't have a lot of real world data - could you please share a few more details (e.g. Windows / Android, fps before / after, for example, or even impressions, as well as device / gfx card)? That way I start to form an idea about the new system requirements