• M
    memilian

    My guess is the haxe compiler removes your function because it's not used in the library, does it help if you add the "@:keep" metadata above the function ?

    @:keep
    static function helloFromMobileHub() { }
    

    posted in Kode read more
  • M
    memilian

    Hi,
    for 2. you can take a look at Lubos's tutorial : http://luboslenco.com/kha3d/#basic-shading

    posted in Kode read more
  • M
    memilian

    I started a mint backend a while ago as a mean to learn kha :
    https://github.com/memilian/khamint
    It still needs a couple tweaks but I might not be able to work on it in the next months, that why I prefer to share it now.
    It only works in html5 target because I used the scissor function to clip text, and it isn't implemented in others backends yet.

    posted in Kode read more
  • M
    memilian

    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 !

    posted in Kode read more
  • M
    memilian

    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

    posted in Kode read more
  • M
    memilian

    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 🙂

    posted in Kode read more

Looks like your connection to Kode Forum was lost, please wait while we try to reconnect.