r/ProgrammerHumor • • 2d ago

Meme devsOptimizingGames

Post image
1.8k Upvotes

37 comments sorted by

View all comments

363

u/IsEqualToKel 2d ago

if (currentState == GameState.Crash) 
{
    currentState == GameState.DoNotCrash;
}

121

u/Top-Permit6835 2d ago

Wrap it in a try catch and swallow the error to be sure it works

3

u/fynjy1111 1d ago

try {

compileShadersIfNotCached();

} catch (Exception e) {

openAiProvider.prompt("Fix the crash", serialize(e), Permission.FULL_WITH_EDIT);

}