Hi all, I haven't been around for a while since a hard drive crash killed all my source code. To get back into things, I thought I would try out the Mersenne Twister random number generator, which I came accross a couple of days ago and Rico mentioned today.
Anyway, using the code off http://www.math.keio.ac.jp/~matumoto/emt.html, it turns out the mersenne twister is a bit slower than rand. Bit disappointing, but no biggy. But then I reinserted the line from Rico's tutorial to up the clock speed to 133MHz. And both functions took twice as long as before.
Is this just a small mistake in the tutorial, or is it possible some things run slower at higher clock speeds due to different memory timings and clock multipliers?
Source Code heavily based on Rico's tutorials
Aster My Asteroids clone that I never quite managed to complete, and have now lost the sources. If anyone wants to host this properly I would be grateful.
Anyway, using the code off http://www.math.keio.ac.jp/~matumoto/emt.html, it turns out the mersenne twister is a bit slower than rand. Bit disappointing, but no biggy. But then I reinserted the line from Rico's tutorial to up the clock speed to 133MHz. And both functions took twice as long as before.
Is this just a small mistake in the tutorial, or is it possible some things run slower at higher clock speeds due to different memory timings and clock multipliers?
Source Code heavily based on Rico's tutorials
Aster My Asteroids clone that I never quite managed to complete, and have now lost the sources. If anyone wants to host this properly I would be grateful.