Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the option to try the mersenne twister #1341

Closed
DorpsGek opened this issue Oct 16, 2007 · 11 comments
Closed

Add the option to try the mersenne twister #1341

DorpsGek opened this issue Oct 16, 2007 · 11 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay

Comments

@DorpsGek
Copy link
Member

skidd13 opened the ticket and wrote:

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.

Attachments

Reported version: 0.5.3
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/1341
@DorpsGek
Copy link
Member Author

skidd13 wrote:

Oops, I forget to change the Reported version to devel. Sorry.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2420

@DorpsGek
Copy link
Member Author

Rubidium wrote:

It totally breaks network compatability, so it should not be that "easy" to configure as it is going to create a lot of bugreports.


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2421

@DorpsGek
Copy link
Member Author

skidd13 wrote:

What about disabling network with the use of --enable-mersenne?


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2422

@DorpsGek
Copy link
Member Author

skidd13 wrote:

Update. Now the usage of Mersenne Twister disables Network.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2439

@DorpsGek
Copy link
Member Author

skidd13 wrote:

First concept for the syncable mersenne twister. (Backend)

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2488

@DorpsGek
Copy link
Member Author

skidd13 wrote:

First concept for the syncable mersenne twister. (Backend)
Not working!

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2489

@DorpsGek
Copy link
Member Author

skidd13 wrote:

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.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2510

@DorpsGek
Copy link
Member Author

skidd13 wrote:

Again a few steps further.
Now I'd like to hear opinions/ideas/comments from a few devs.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2513

@DorpsGek
Copy link
Member Author

skidd13 wrote:

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.

Attachments


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2527

@DorpsGek
Copy link
Member Author

DorpsGek commented Nov 3, 2007

TrueBrain wrote:

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 :)


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341#comment2583

@DorpsGek
Copy link
Member Author

Rubidium closed the ticket.

Reason for closing: Out of date

NoSuchMersenneAnymore ;)


This comment was imported from FlySpray: https://bugs.openttd.org/task/1341

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay labels Apr 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) patch from FlySpray This issue is in fact a Patch, but imported from FlySrpay
Projects
None yet
Development

No branches or pull requests

1 participant