Closed Gama11 closed 7 years ago
We use release as the default build configuration, as debug can have poor performance :confused:
Hm.. that's pretty bad for Flixel projects, because the splash screen will be enabled in release mode - you want that to be disabled during development. Also, you want flixel's debugger overlay to be active. The assumption with Flixel is really that you only use release mode for releases and are in debug mode otherwise / during development.
Could we detect Flixel (through lime display
) and change the default to Debug in that case?
Would it be possible to disable the splash screen unless you do a -final
build?
Debug is generally used for finding the cause of issues, where performance is not a concern. Release is used for everyday testing where you do care about performance and build times, final is used for production where performance matters, but build times can be long.
Release is used for everyday testing
That might be true for OpenFL, but not for with Flixel. It's not just about the splash screen, but also about Flixel's debugger overlay, which is usually used quite frequently.
That might be true for OpenFL, but not for with Flixel. It's not just about the splash screen, but also about Flixel's debugger overlay, which is usually used quite frequently.
Same for haxepunk.
Personally I use #if debug
to skip the main menu and stuff like that.
Never did a final build, which besides html5 doesn't make sense IIRC.
The names used may seem disagreeable (debug, release, final) but I think that the classification is important
Perhaps we can support "lime.defaultConfiguration" as a property that the user can change?
Perhaps we can support "lime.defaultConfiguration"
I don't think that helps. It's all about the default value. If you have to take steps to change the default, it's already not really worth it anymore (if the user knows about this setting, he may as well just switch the build config to debug).
I meant this in global settings, so that by default, your new projects will use this setting
Hm... That would help, to some degree. Except for people who are new to Flixel or the Lime VSCode extension.
I think we'll see a lot of "It crashed but I didn't get any useful information, why?" with release as default. And the answer will be "You need to switch to debug, redo a full compilation, manage to reproduce and then you'll have them".
Besides I don't remember the debug builds being that slow.
It depends upon the platform, but some debug builds are VERY, VERY slow. iOS is a good example
Lime uses release as the default build configuration, lime test windows
. You need to opt-in to use another build configuration (lime test windows -debug
, lime test windows -final
).
This seems like a more sensible default.