Poobslag / turbofat

Block-dropping puzzle game
MIT License
54 stars 18 forks source link

Avoid stutter by prematurely caching particles #1937

Open Poobslag opened 1 year ago

Poobslag commented 1 year ago

Godot #13954 (https://github.com/godotengine/godot/issues/13954) is a bug which makes particles freeze the game for a few milliseconds the first time they are emitted. This Godot bug was closed with the recommendation that developers cache any necessary materials during the loading screen.

We don't currently cache materials during our loading screens, so this bug affects us. We should precache all particles to avoid this kind of stutter.

Poobslag commented 1 year ago

This video documents how to cache particle materials.