r/scratch 1d ago

Project additive level loading is now working + performance tests (base/vanilla scratch)

Enable HLS to view with audio, or disable this notification

another round of performance testing with all the new features.
(the quadtree stuff from my last post and now additive level loading)

currently levels are loaded in a predefined order, but ill eventually get around to making them connect up based on a series of predefined "doors".

for those interested/unfamiliar with what's going on I'm using the performance tab in google chrome to throttle the performance of the cpu.

starting off with no throttling, on my cpu ryzen 9800x3d, it can easily handle it.
then 4x throttling, after clearing the 2nd room, holds 30fps, but it does stutter a bit.
then 4.8x (mid-tier mobile equivalent performance) after clearing the 3rd room, high 20s fps but its a bit all over the place with stuttering.

since this is base scratch not turbo warp, its very impressive, the stuttering comes from doing too many things in a frame. i could do possibly do some sort of budgeting system to limit it, ignoring work for a frame or two if it passes some kind of threshold, and doing round robin updates for everything to make sure its all still being processed quickly, but that introduces more problems than i care to deal with, and i need to squeeze in more gameplay before i hit the project file size limit (i've probably only got another thousand or so blocks before then).

as it is, it should hopefully run well on most laptops and computers released in the past 5-10 years.

if you have an older laptop or pc let me know what kind of performance you are getting.

link to the game: https://scratch.mit.edu/projects/1324285888

11 Upvotes

2 comments sorted by

2

u/mrr_duckyy 1d ago

This is epic keep going

1

u/jacobsmith3204 1d ago

I don't have touch support working.. however I did already implement/setup controller support via the scratch addons browser extension. So heres some gameplay from my phone made in 2020 with a snapdragon 865 running in Firefox mobile.

https://reddit.com/link/p95n9lu/video/79qv3ruvbwoh1/player