I have ga,e that is works on windows (an arm ios/android). And I need to
port in on web. I have code that is warks fine for all previous platforms.
However after compiling code using emscripten I found strange behaviour. I
have class
class CEnemy
{
...
wchar_t* version;
double m_d1;
double m_d2;
}
When I set m_d1 to some value e.g. 1.0 version field is also changed. I use
special allocator to reuse memory for different objects. All values from
this allocator are 4 bytes aligned. Without reusing memory it seems to
work. However I'm afraid that using normal allocator slows down my game
very much.
adress of m_d1 is 4 bytes aligned but not 8 bytes aligned. Probably it is
important.
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.