optimization is a wide topic, its not really about one thing i cant really explain it but i can give one example, like if you have particles in your game, make sure to delete them once they dissapear because its just going to lag the game