gamecreator Posted August 10, 2016 Share Posted August 10, 2016 How do you guys determine what resolution your game will run in and support when you share it with others? I'm aware of being able to use CountGraphicsModes and GetGraphicsMode to get the list but then what? macklebee suggested using the last item on that list here as the native resolution and that may be my method too but I don't know how reliable that is (it does work for me too though). Does it make sense to use the biggest one on that list? Are there any other methods of getting the native resolution? I saw GetSystemMetrics in a search but I believe that's for Windows only and it only gets the current resolution, not necessarily the max/native. As of the July 2016 Steam survey, the most popular resolutions are: 1920 x 1080 - 36.68% 1366 x 768 - 25.85% so I'd like to support at least those two, which means at least two font and message sizes. Kind of a rambly post with multiple questions. Any thoughts on this? Quote Link to comment Share on other sites More sharing options...
Jazz Posted August 10, 2016 Share Posted August 10, 2016 I always use the last mode in the list without issues, but usually add a menu to change resolutions for those with slower cards/PCs/preferences. edit: I haven't tested on Linux yet. 1 Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
gamecreator Posted August 11, 2016 Author Share Posted August 11, 2016 Thanks. I'm having some friends test it and I think I'll go the same way too if they get the same results. And yes, eventually a menu option is in order but I don't think I'll have time for that for the Summer Tournament. Quote Link to comment Share on other sites More sharing options...
Jazz Posted August 11, 2016 Share Posted August 11, 2016 Another temporary option is to use up/down arrow keys for the user to cycle through them. Quote --- Scott Using Windows 7 Ultimate 64 bit/Core I7-2700K @ 4312mhz/24G RAM/Nvidia GTX 1060 Link to comment Share on other sites More sharing options...
reepblue Posted August 11, 2016 Share Posted August 11, 2016 LEX2 uses the user's native res for the default fullscreen. If you look back a few topics, Mac posted code containing how to get all supported resolutions for the machine. Use System::CountGraphicNodes()-1.x and System::CountGraphicNodes()-1.y. Quote Cyclone - Ultra Game System - Component Preprocessor - Tex2TGA - Darkness Awaits Template (Leadwerks) If you like my work, consider supporting me on Patreon! Link to comment Share on other sites More sharing options...
gamecreator Posted August 11, 2016 Author Share Posted August 11, 2016 Another temporary option is to use up/down arrow keys for the user to cycle through them. Definitely. For the tournament though I think most people will be satisfied with just using their native resolution. LEX2 uses the user's native res for the default fullscreen. If you look back a few topics, Mac posted code containing how to get all supported resolutions for the machine. Use System::CountGraphicNodes()-1.x and System::CountGraphicNodes()-1.y. Yup, I saw that thread as well with some similar functions. Very helpful. Quote Link to comment Share on other sites More sharing options...
Josh Posted August 11, 2016 Share Posted August 11, 2016 The launcher also has a setting the user can use, and that gets passed to the game in the command line. 1 Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
DooMAGE Posted August 11, 2016 Share Posted August 11, 2016 LEX2 uses the user's native res for the default fullscreen. If you look back a few topics, Mac posted code containing how to get all supported resolutions for the machine. Use System::CountGraphicNodes()-1.x and System::CountGraphicNodes()-1.y. Where I can find LEX2? I found this and the links are dead http://www.leadwerks.com/werkspace/blog/164/entry-1694-lex2-evaluation-demo/ Quote My Leadwerks games! https://ragingmages.itch.io/ Link to comment Share on other sites More sharing options...
gamecreator Posted August 11, 2016 Author Share Posted August 11, 2016 One of my friends came back with the test and his native resolution is the last one on the list too. It seems that list is in size order so it makes sense that the largest is the native. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.