Closed mrzzzrm closed 10 years ago
funny, I checked it in the profiler too and for windows there is no problem with rand()
would it hurt to have a RP anyway?
no ;)
or how about using a faster random generator? http://de.wikipedia.org/wiki/Xorshift
at least when I tried to "optimize" sin()/cos() calls with precalculated values it wasn't faster because of the memory speed.
VoxelExplosionGenerator::spawn() is at 20% for me in a quite GameScenario because of the rand() calls