summaryrefslogtreecommitdiff
path: root/src/linkgraph/linkgraphschedule.cpp
AgeCommit message (Collapse)Author
2020-12-25Change: [Linkgraph] Allow job threads to be aborted early when clearing ↵Jonathan G Rennison
schedule (#8416) When link graph jobs are cleared due to abandoning the game or exiting, flag the job as aborted. The link graph job running in a separate thread checks the aborted flag periodically and terminates processing early if set. This reduces the delay at game abandon or exit if a long-running job would otherwise still be running.
2020-12-22Change: [Linkgraph] Only acquire thread join performance measurements on ↵Jonathan G Rennison
network clients Network servers and single player clients do not block on thread joins due to instead pausing shortly before the join is due.
2020-12-22Change: [Linkgraph] Pause the game when linkgraph jobs lag (#6470)Jonathan G Rennison
Check if the job is still running two date fract ticks before it is due to join, and if so pause the game until its done. When loading a game, check if the game would block immediately due to a job which is scheduled to be joined within two date fract ticks, and if so pause the game until its done. This avoids the main thread being blocked on a thread join, which appears to the user as if the game is unresponsive, as the UI does not repaint and cannot be interacted with. Show if pause is due to link graph job in status bar, update network messages. This does not apply for network clients.
2019-12-21Codechange: Replace linkgraph related FOR_ALL with range-based for loopsglx
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-04-06Codechange: Replace custom thread code with C++11 thread objects.Michael Lutz
We assume a conforming C++11 compiler environment that has a valid <thread>-header. Failure to run a real thread is handled gracefully.
2018-07-19Feature: Framerate display window (#6822)Niels Martin Hansen
Frame rate and various game loop/graphics timing measurements and graphs. Accessible via the Help menu, and can print some stats in the console via the fps command.
2015-03-07(svn r27178) -Fix [FS#5969]: Data race due to lazy initialisation of objects.frosch
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-02-16(svn r26347) -Fix [FS#5898]: Make sure link graph jobs can delete themselves ↵fonsinchen
after SLA_NULL.
2014-01-24(svn r26276) -Fix [FS#5874]: Don't spawn link graph jobs for link graphs ↵fonsinchen
with only one node
2013-12-20(svn r26166) -Fix: Scale flows only after mapping to avoid rounding errors.fonsinchen
2013-10-15(svn r25867) -Fix [FS#5764]: Shift dates on link graphs when using scenario ↵fonsinchen
editor date tool.
2013-06-09(svn r25357) -Add: flow mapper for link graphfonsinchen
2013-06-09(svn r25356) -Add: Multi-Commodity-Flow solver for link graphfonsinchen
2013-06-09(svn r25355) -Add: demand handler for link graphfonsinchen
2013-06-09(svn r25354) -Add: link graph schedule and typedefs for LinkGraph and ↵fonsinchen
related classes