You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
OpenTTD-patches/src/network
Patric Stout 970fedd78c Add: make modal windows update more smooth
Basically, modal windows had their own thread-locking for what
drawing was possible. This is a bit nonsense now we have a
game-thread. And it makes much more sense to do things like
NewGRFScan and GenerateWorld in the game-thread, and not in a
thread next to the game-thread.

This commit changes that: it removes the threads for NewGRFScan
and GenerateWorld, and just runs the code in the game-thread.
On regular intervals it allows the draw-thread to do a tick,
which gives a much smoother look and feel.

It does slow down NewGRFScan and GenerateWorld ever so slightly
as it spends more time on drawing. But the slowdown is not
measureable on my machines (with 700+ NewGRFs / 4kx4k map and
a Debug build).

Running without a game-thread means NewGRFScan and GenerateWorld
are now blocking.
3 years ago
..
core Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
CMakeLists.txt Add: introduce CMake for project management 4 years ago
network.cpp Change: move "give money" from client-list to company window 4 years ago
network.h Cleanup: Removed SVN headers 5 years ago
network_admin.cpp Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_admin.h Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_base.h Codechange: Replace network related FOR_ALL with range-based for loops 5 years ago
network_chat_gui.cpp Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_client.cpp Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_client.h Cleanup: Removed SVN headers 5 years ago
network_command.cpp Codechange: rename sound ids to make more sense. (#8701) 3 years ago
network_content.cpp Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_content.h Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_content_gui.cpp Add: make modal windows update more smooth 3 years ago
network_content_gui.h Cleanup: Removed SVN headers 5 years ago
network_func.h Feature #7756: Allow server to supply a reason to kicked/banned clients 4 years ago
network_gamelist.cpp Codechange: Replace custom linked list for GRF texts with STL vectors and strings. 4 years ago
network_gamelist.h Cleanup: Removed SVN headers 5 years ago
network_gui.cpp Fix #8799: NGameAllowedSorter() is not imposing strict weak ordering relation (#8801) 3 years ago
network_gui.h Change: move "give money" from client-list to company window 4 years ago
network_internal.h Cleanup: Removed SVN headers 5 years ago
network_server.cpp Fix: [Network] don't show "server doesn't respond" while in queue 3 years ago
network_server.h Fix: [Network] don't show "server doesn't respond" while in queue 3 years ago
network_type.h Fix #8060, 5880f14: Restore admin network API compatibility. 4 years ago
network_udp.cpp Codechange: [Network] replace _realtime_tick with std::chrono 3 years ago
network_udp.h Cleanup: Removed SVN headers 5 years ago