Skip to content

Trobuleshotting High CPU & GPU Usage

Frankie A edited this page Jun 4, 2021 · 3 revisions

Trobuleshotting - High CPU & GPU Usage

You may notice when running an application made with Muzzle that your GPU & CPU Usage is VERY high. This is because Muzzle is trying to run the application AS FAST AS POSSIBLE and with AS MUCH POWER as it can take. A way to prevent this is to enable VSync

How to enable VSync

Vsync is configured at Initizaliation of Muzzle. So here is what you need to change:

InitializeApplet(SCREEN_WIDTH, SCREEN_HEIGHT, "Window Title", MUZZLE_FALSE, MUZZLE_FALSE);

Change that line to:

InitializeApplet(SCREEN_WIDTH, SCREEN_HEIGHT, "Window Title", MUZZLE_FALSE, MUZZLE_TRUE);
Clone this wiki locally