OpenTTD

Tasklist

FS#1341 - Add the option to try the mersenne twister

Attached to Project: OpenTTD
Opened by Benedikt Brüggemeier (skidd13) - Monday, 15 October 2007, 22:27 GMT
Type Patch
Category Core
Status Closed
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version 0.5.3
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I played OpenTTD a bit with the mersenne twister and I really prefer it (IMO it generates nicer town surfaces).
I thought it would be cool to have an option for configure. So I added it.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Thursday, 17 April 2008, 19:19 GMT
Reason for closing:  Out of date
Additional comments about closing:  NoSuchMersenneAnymore ;)
Comment by Benedikt Brüggemeier (skidd13) - Monday, 15 October 2007, 22:34 GMT
Oops, I forget to change the Reported version to devel. Sorry.
Comment by Remko Bijker (Rubidium) - Tuesday, 16 October 2007, 04:12 GMT
It totally breaks network compatability, so it should not be that "easy" to configure as it is going to create a lot of bugreports.
Comment by Benedikt Brüggemeier (skidd13) - Tuesday, 16 October 2007, 05:39 GMT
What about disabling network with the use of --enable-mersenne?
Comment by Benedikt Brüggemeier (skidd13) - Tuesday, 16 October 2007, 21:37 GMT
Update. Now the usage of Mersenne Twister disables Network.
Comment by Benedikt Brüggemeier (skidd13) - Monday, 22 October 2007, 21:34 GMT
First concept for the syncable mersenne twister. (Backend)
Comment by Benedikt Brüggemeier (skidd13) - Monday, 22 October 2007, 21:34 GMT
First concept for the syncable mersenne twister. (Backend)
Not working!
Comment by Benedikt Brüggemeier (skidd13) - Thursday, 25 October 2007, 18:15 GMT
Further work on the concept.
I invented an abstrect class to carry the different randoms. I hope this will make the whole process easier.
The additional pro on this concept is that if the mersenne twister is too random it will be easy to implement another algorithm.
Comment by Benedikt Brüggemeier (skidd13) - Friday, 26 October 2007, 12:03 GMT
Again a few steps further.
Now I'd like to hear opinions/ideas/comments from a few devs.
Comment by Benedikt Brüggemeier (skidd13) - Monday, 29 October 2007, 16:16 GMT
Further stuff. I'm trying to replace the old random functions with a new random object.
It's still not working. :(
Don't wonder if you notice that I removed all the mersenne stuff. It will be added later again.
Comment by Patric Stout (TrueBrain) - Saturday, 03 November 2007, 21:07 GMT
I like your last patch, although it needs some improvements. Like maybe inline stuff? Don't know if it really is a performance issue if it isn't inlined, but this is a bit slower than the old method. Needs benchmarking I guess. Anyway, it is going the right way :)

Loading...