-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Description
Although this is not a game example, I hope this is a good contribution to make future projects made with GDevelop better. :)
By default, your games and apps will run on the integrated GPU, even if a dedicated one is available in your Windows PC, due to the web-app nature of games created with GDevelop. Most of the time, the performance this way is not enough even for the simplest 3D games, or more complicated 2D games when heavily using effects.
This means, when you ship your game, users would manually have to edit their Windows graphics settings to use their dedicated GPU.
To make your games run just as you intended, I've created a really simple launcher that works for your Windows builds of games.
- Move your build to "FOLDER_NAME", then rename the folder, only using letters and "_".
- Edit the "config.txt" text file to point to your build's EXE file.
- For dedicated GPU, leave the "gpu" property on "2", for integrated, edit it to "1".
- Rename the launcher to your liking. It looks the best if you give it the same name as your build, and if you give it an icon, using tools like Icon-Changer.
Demo.mp4
Made by creating a BAT file that adds a specific application to Windows' graphics settings and setting the GPU to either the power saving one or high performance one, then converting the BAT file to EXE file. Full source code here.
Checklist
- I've followed all of the best practices.
- My game has a proper name in the game properties.
- My game package name begins with
com.example.
. - My game has all events unfolded.
- I've added myself as the author in the game properties.
- I've included a file called "README.md" with a description in proper English, explaining what this example is doing.
- I confirm that this game and all of its resources can be integrated to this GitHub repository, distributed and MIT licensed.
- I've cleaned unused resources.