12-06-2020, 02:52 PM
I have a very bad habit... when defining classes in C++ I often just put the label and type... This is usually ok, since I seldom write release builds.
The reason there's a difference is that in debug builds the compiler usually nulls all variables and clears memory to 0..release builds don't, memory is as it is when it fires up.
Usually.
I discovered the compiler on the Arm64 Jetson doesn't.......
And it took me 6 hours to work out why, in a demo I was workig on that worked perfectly on 8 other machines, only the Jetson redused to display the 1st of 4 test models........
I had not 0'd a rotation Vec3, and in the update of the model I was rotating assuming 0.....
Bad habits only get broken when you make bad mistakes.... 6 hours though...ooooff.. I should know better.
I have now put default values in all class varibles in the class define.
The reason there's a difference is that in debug builds the compiler usually nulls all variables and clears memory to 0..release builds don't, memory is as it is when it fires up.
Usually.
I discovered the compiler on the Arm64 Jetson doesn't.......
And it took me 6 hours to work out why, in a demo I was workig on that worked perfectly on 8 other machines, only the Jetson redused to display the 1st of 4 test models........
I had not 0'd a rotation Vec3, and in the update of the model I was rotating assuming 0.....
Bad habits only get broken when you make bad mistakes.... 6 hours though...ooooff.. I should know better.
I have now put default values in all class varibles in the class define.