Niels Martin Hansen

Results 75 comments of Niels Martin Hansen

Mods used must be stored in savegames. Active mods should definitely not be a global state. This can help prevent players load a saved game that requires a mod they...

It may seem counter-intuitive, but you're generally better off running an OpenTTD server on the *slowest* computer participating. If the server simulates the world faster than clients are able to...

Nothing looks out of the ordinary here: https://github.com/OpenTTD/OpenTTD/blob/ffd3c11ba7d3abd3dc3e387df24c157f281c8d15/src/viewport.cpp#L3447-L3465 The SSE4.1 support flag is definitely bit 19 in register 2 at CPUID.1: https://github.com/OpenTTD/OpenTTD/blob/ffd3c11ba7d3abd3dc3e387df24c157f281c8d15/src/viewport_sprite_sorter_sse4.cpp#L168-L175 The only two options left I can see...

Okay yeah this is wrong. https://github.com/OpenTTD/OpenTTD/blob/ffd3c11ba7d3abd3dc3e387df24c157f281c8d15/cmake/FindSSE.cmake#L7-L9 The test is for "does the compiler have the include files for MMX and SSE intrinsics", but then sets the `-msse4.1` flag which tells...

Okay I misunderstood the above. It isn't adding the `-msse4.1` option to every file it compiles. But it still unnecessarily adds it to the files containing SSE4.1 intrinsics code. Those...

Try removing these lines and see if that fixes things: https://github.com/OpenTTD/OpenTTD/blob/ffd3c11ba7d3abd3dc3e387df24c157f281c8d15/src/CMakeLists.txt#L32-L36 There might be similar things in the `CMakeLists.txt` files in `blitter/`.

If it is in fact an ODR thing with some inline functions being compiled with SSE4.1 and then getting chosen for the definition getting linked, perhaps it's worth trying to...

What if the player is running low screen resolution and there are many companies and all actions available? Make sure the window won't overflow the screen. One of the original...

Cannot reproduce. Tested with `dmusic` driver playing to the Microsoft GM soft-synth using the default DLS instruments, as well as with the `win32` driver playing to two different hardware MIDI...