Hi,
I just ported the libnoise library and want to use it with kha to make a tool for procedural texture generation.
Using just the library, targeting cpp, the values to fill a 512x512 image are generated in ~350 ms while in kha targeting linux it takes ~2 s, that's four time slower than the html5 target.
I assume the difference may be caused by some HXCPP defines used by kha, but I lack knowledge in both cpp and hxcpp to confirm that.
If anyone could point me to any direction to find what could cause such a huge difference, I'd appreciate
-
Performance issues
-
Performance issues
Is debug mode active by default ? I don't know how to activate it in kha. My project.kha is very basic :
{ "format": 3, "game": { "name": "TexGen", "width": 800, "height": 750 }, "libraries": [ "libnoise" ], "assets": [], "rooms": [] }
and here is the test class :
https://gist.github.com/memilian/f7743ff5913ca11c4bc3#file-texgen-hx -
Performance issues
Ho well, you are right, I started to use --compile because it was faster and more convenient than opening another ide.. I'll have to find another workflow. So if I understand correctly, the only way to not run in debug mode is using the generated project's release configuration... That make a lots of sense now
Thanks for your time !