Precompile all

My project grows every day so one day I stuck with some problems related with compile and loading speed.Main code is about ~20k lines, so it compiles about 45 seconds every time.

Few months ago i found this spectacular thread [DBP] – [Matrix1] Precompiling functions for faster compile times! The main idea is to precompile all functions which you already finished into individual files.So they just load not compile.It is the only solution which I find cos Lee Bamber dont release any compiler update in future.

The second trouble is that if you use “if” statement in shader its loading time grows significantly.DBPro precompile all shaders before load them so I just get hlsl precompiler which you can find with Directx9


This entry was posted in Anyhow Engine, Tutorials. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s