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
]]>http://forum.kode.tech/topic/23/performance-issuesRSS for NodeSun, 07 Jun 2020 07:37:14 GMTSun, 30 Aug 2015 14:49:08 GMT60Hi,
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
]]>http://forum.kode.tech/post/46http://forum.kode.tech/post/46Sun, 30 Aug 2015 14:49:08 GMTKha doesn't use any hxcpp defines that could slow things down AFAIK. Did you maybe compile in debug mode? If not, can you share the test code so I can run it in a profiler?
]]>http://forum.kode.tech/post/47http://forum.kode.tech/post/47Sun, 30 Aug 2015 17:23:37 GMTIs debug mode active by default ? I don't know how to activate it in kha. My project.kha is very basic :

]]>http://forum.kode.tech/post/48http://forum.kode.tech/post/48Sun, 30 Aug 2015 18:06:28 GMTFor me it's about one second in html5 and 0.3 seconds in Visual Studio's C++, so I would guess you do indeed run in debug mode. Do you use --compile or do you use Code::Blocks? --compile doesn't add any optimization parameters to the generated makefile.
]]>http://forum.kode.tech/post/49http://forum.kode.tech/post/49Sun, 30 Aug 2015 19:53:16 GMTHo 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 !
]]>http://forum.kode.tech/post/50http://forum.kode.tech/post/50Mon, 31 Aug 2015 05:49:19 GMTOh, no need to change your workflow, I'll just add a release mode switch.
]]>http://forum.kode.tech/post/51http://forum.kode.tech/post/51Mon, 31 Aug 2015 18:20:51 GMT