Lazarus

Programming => Graphics and Multimedia => Games => Topic started by: Jake012345 on April 19, 2020, 09:38:03 pm

Title: Castle Engine Compiling Time
Post by: Jake012345 on April 19, 2020, 09:38:03 pm
Hello!

I'm using /(learning) Castle Game Engine with FPC but the compiling time is annoys me :(
I'm turned off the 'troubleshooting information....' checkbox in project settings.
Anything else, what can help me?
Title: Re: Castle Engine Compiling Time
Post by: michalis on April 20, 2020, 11:45:46 am
Quote
I'm using /(learning) Castle Game Engine with FPC but the compiling time is annoys me :(

Castle Game Engine is just a set of units. There is a lot of them, but they compile relatively fast, faster than e.g. LCL :)

And the engine is compiled just once. If you compile by Lazarus, then "castle_base" package is just compiled once. If you use the build tool (https://github.com/castle-engine/castle-engine/wiki/Build-Tool), then the engine is recompiled once per project.

In all cases: if you just recompile an existing project, it should be almost instant, that's what I experience.

So please describe in more detail how are you compiling projects, and what compile times you have (in seconds). Maybe you're doing something non-standard causing some slowness that I don't experience? Standard ways to compile are described on https://castle-engine.io/documentation.php .

Quote
I'm turned off the 'troubleshooting information....' checkbox in project settings.

I'm not sure what do you mean by 'troubleshooting information....' checkbox. There are various verbosity settings in the project settings. The defaults should be rather good. I would advise having Warnings and Notes = On, Hints = Off. Do not use "Show everything (-va)" in normal work, as then the output is huge.
Title: Re: Castle Engine Compiling Time
Post by: Jake012345 on April 22, 2020, 07:12:00 pm
From the pressing F9 to program starting, 34 second.

But after re-Compiling the components it's reduced 9 second. Thanks ;)
TinyPortal © 2005-2018