axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
868 stars 195 forks source link

Compiling cpp-tests causes VS to crash on occasion due to #1434 #1464

Closed rh101 closed 10 months ago

rh101 commented 10 months ago

Over 10000 warnings pop up due to the changes made in #1434, which causes Visual Studio to randomly lock up and crash during compilation.

For example: image

The values in the arrays should be floats, but they are missing the f suffix, so are being treated as type double. Due to the large amount of data embedded in the source, it also slows down compilation, so it may be better to have these values in an external data file that is processed when that specific test is initiated.

aismann commented 10 months ago

Is this fixed if the value(s) be float?

rh101 commented 10 months ago

Is this fixed if the value(s) be float?

Yes, adding the "f" suffix should stop the large number of warnings, which is probably what is causing the VS IDE to lock up.

aismann commented 10 months ago

Can you make a PR? I can do it later also.

rh101 commented 10 months ago

Can you make a PR? I can do it later also.

Sure, I'll sort it out in a few minutes.