Discuss Scratch

invalidaccess
Scratcher
100+ posts

HOW TO OPTIMIZE A GAME

with every new feature i added to my project it slightly gets slower. i mean i could use turbowarp but i want it to work fine with scratch as well
i need general optimization ideas

Last edited by invalidaccess (Oct. 20, 2024 18:27:39)

8to16
Scratcher
1000+ posts

HOW TO OPTIMIZE A GAME

don't put “run without screen refresh” custom blocks in forever loops if the custom block also has forever loops inside

Last edited by 8to16 (Oct. 20, 2024 19:05:52)

davidtheplatform
Scratcher
500+ posts

HOW TO OPTIMIZE A GAME

Features that aren't actively being used shouldn't have code running in them. For example if the pause menu has a big loop in it, make sure that loop only runs when the game is paused.
TheCreatorOfUnTV
Scratcher
1000+ posts

HOW TO OPTIMIZE A GAME

Here's a project that might help: https://scratch.mit.edu/projects/1072448927/
Weasel01
Scratcher
13 posts

HOW TO OPTIMIZE A GAME

Can you send us the project link? I understand if you want to keep it unshared, but it would be helpful if we could see the code!
BigNate469
Scratcher
1000+ posts

HOW TO OPTIMIZE A GAME

8to16 wrote:

don't put “run without screen refresh” custom blocks in forever loops if the custom block also has forever loops inside
Better yet, don't put forever loops inside “run without screen refresh” custom blocks at all.
seriously, it does slow the project down.
DavidStar53
Scratcher
77 posts

HOW TO OPTIMIZE A GAME

Hi! I was wondering if I could get some tips for optimizing a 3D engine?

Powered by DjangoBB