vujadin / BabylonHx

Port of Babylon.js 3D engine to Haxe.
http:/paradoxplay.com/babylonhx
Apache License 2.0
189 stars 43 forks source link

Warning : maybe loop in static generation of com.babylonhx.math.Vector3 #130

Closed songproducer closed 7 years ago

songproducer commented 7 years ago

I run this: haxelib run lime test project.xml html5

com/babylonhx/math/Vector3.hx:13: lines 13-821 : Warning : Warning : maybe loop in static generation of com.babylonhx.math.Vector3

ramsestom commented 7 years ago

Also have this warning with openfl. Doesn't prevent the project to compile but might affect performances (performances with the current version of babylonHX are worst than with the version of few months ago in my tests so might be one of the reasons...) and generate some bugs.

vujadin commented 7 years ago

@ramsestom can you tell how much worse the performance is now compared to the version you have? there was a heavy change in babylon.js materials structure at some point that couldn't be done effectively in bhx - so I'm aware of that one and I know it had some performance hit. it would be good if you could make some comparision tests and send me

ramsestom commented 7 years ago

Well I have bugs in my code with the new version of babylonhx (like the rotation one) that need to be fixed before trying to asses the performance lost I guess. The poorer performance might just be linked to these bugs (even if I also noticed that initializing a scene seems to take more time with the new version of babylonhx rather than with the old one, wich would probably not be fixed by patching current rendering bugs...)

songproducer commented 7 years ago

I get that warning displayed three times, then nothing happens. Is there any way to check any log for more details?

vujadin commented 7 years ago

its harmless... I'll fix it later today but you shouldn't worry about it