Files @ r25014:e1f1bf3a062e
Branch filter:

Location: cpp/openttd-patchpack/source/media/baseset/orig_dos.obg

Patric Stout
Add: [Video] move GameLoop into its own thread

This allows drawing to happen while the GameLoop is doing an
iteration too.

Sadly, not much drawing currently can be done while the GameLoop
is running, as for example PollEvent() or UpdateWindows() can
influence the game-state. As such, they first need to acquire a
lock on the game-state before they can be called.

Currently, the main advantage is the time spend in Paint(), which
for non-OpenGL drivers can be a few milliseconds. For OpenGL this
is more like 0.05 milliseconds; in these instances this change
doesn't add any benefits for now.

This is an alternative to the former "draw-thread", which moved
the drawing in a thread for some OSes. It has similar performance
gain as this does, although this implementation allows for more
finer control over what suffers when the GameLoop takes too
long: drawing or the next GameLoop. For now they both suffer
equally.
; This represents the original graphics as on the non-German Transport
; Tycoon Deluxe DOS CD.
;
[metadata]
name              = original_dos
shortname         = TTDD
version           = 1
palette           = DOS
@description_STR_BASEGRAPHICS_DOS_DESCRIPTION@

[files]
base              = TRG1.GRF
logos             = TRGI.GRF
arctic            = TRGC.GRF
tropical          = TRGH.GRF
toyland           = TRGT.GRF
extra             = ORIG_EXTRA.GRF

[md5s]
TRG1.GRF          = 9311676280e5b14077a8ee41c1b42192
TRGI.GRF          = da6a6c9dcc451eec88d79211437b76a8
TRGC.GRF          = ed446637e034104c5559b32c18afe78d
TRGH.GRF          = ee6616fb0e6ef6b24892c58c93d86fc9
TRGT.GRF          = e30e8a398ae86c03dc534a8ac7dfb3b6
ORIG_EXTRA.GRF    = ${ORIG_EXTRA_GRF_MD5}

[origin]
default           = You can find it on your Transport Tycoon Deluxe CD-ROM.
ORIG_EXTRA.GRF    = This file was part of your OpenTTD installation.