eugeneloza / castle-editor-tutorial

Moved to https://gitlab.com/EugeneLoza/castle-editor-tutorial
MIT License
2 stars 0 forks source link

Remove debug modes description #19

Closed michaliskambi closed 3 years ago

michaliskambi commented 3 years ago

The tutorial spends time showing how to setup Lazarus build modes, "3.3. Set up Debug Mode". I would say to remove it:

  1. Because Lazarus build modes, while useful, are not really critical for simpler CGE projects.They do not control how the CGE units are compiled (only how project units are compiled), so likely there will be no difference between "Debug" and "Release" Lazarus build modes performance. I would advise to just enable "assertions" in the "default" mode of your applications. For simple applications, this is simple and reasonable.

    If we ever change our decision about this, we can anyway add the default "build modes" to the LPI generated by default. Or Lazarus may decide to create debug / release build modes by default. So in any case, this should not be a step performed by user. For simple applications, the default LPI should be suitable.

  2. Engine (build tool) has debug / release modes (switchable in editor) that work automatically, and matter more (they affect both compilation of user code and engine).

eugeneloza commented 3 years ago

Done. (not included in reboot version)