Yue Posted July 17, 2017 Share Posted July 17, 2017 Hi, I have very low fps in debug mode only with a camera that does not display anything. And the information on the screen marks me 20-30 fps. Any suggestion? Quote Link to comment Share on other sites More sharing options...
gamecreator Posted July 17, 2017 Share Posted July 17, 2017 Debug mode is slower than release mode. What's your video card? And how fast is it in release? Quote Link to comment Share on other sites More sharing options...
Yue Posted July 17, 2017 Author Share Posted July 17, 2017 Hi, My Graphics Card is GTX 1050. No, I have the reference of how to display the FPS in final executable mode, I'm just experimenting and knowing the engine. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted July 17, 2017 Share Posted July 17, 2017 That seems very low for that card and an empty scene but I don't use debug mode so I honestly don't know. If release mode gives you a high framerate then you're probably fine. Quote Link to comment Share on other sites More sharing options...
Yue Posted July 17, 2017 Author Share Posted July 17, 2017 The right question, how do I look at the frames per second in a final executable? When I launch the debugger, I see the information of the FPs, but an executable that is not debug mode, does not have that information. Quote Link to comment Share on other sites More sharing options...
Yue Posted July 17, 2017 Author Share Posted July 17, 2017 Ok, mode no debug. 1570 FPS. context:DrawText("FPS: "..Math:Round(Time:UPS()),2,2) So, what's the use of debug mode?, If loading a large stage will be impossible to play to perform the tests. Quote Link to comment Share on other sites More sharing options...
Yue Posted July 17, 2017 Author Share Posted July 17, 2017 Okay, all right here, it has already done the information to launch the application in debug mode, says that it is very slow in the Lua environment. :) Quote Link to comment Share on other sites More sharing options...
mdgunn Posted July 17, 2017 Share Posted July 17, 2017 In release mode I think it is F11 will get you fps but not some of other info, but you can change this a bit if you want some other stats coming out. The bit of code should be in main.lua. You can also set up your own global level debug flag and bind a key to turn it on and of in game to write out messages around your suspected trouble point. Primitive but eternally useful. Debugging a large level can be a problem but that should be a last resort. Aim to MAKE problems actually HAPPEN early in a simplified test environment (which can still have complex interactions) during mechanics development, and use it to reproduce suspected problem scenarios if found later in large level. The simplified level should run just fine in debug mode. I sometimes develop on a laptop with integrated graphics and I would suggest that Leadwerks is actually more practical to use in such a setup than most other engines. Small test levels launch quite quickly and the uncluttered editors are practical to use on small screens. At some point you probably need to retreat to a desktop to do full level development but you can do a lot of groundwork on a light system. If your game isn't fun when its in a simple level it may indicate that adding loads of stuff in isn't going to make it any more fun. I don't need to worry about that though. My games are never fun! .....sigh. 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.