Age | Commit message (Collapse) | Author |
|
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.
|
|
|
|
|
|
|
|
borders (#7883)
This means that for NE/NW, it should have one more in case of
freeform-edges, and in case of SE/SW it should have one less.
Reminder: freeform-edges only adds VOID tiles on X=0 and Y=0.
|
|
Global; except for the 32-bit SSE blitter, which has some #DEFINEs
in not-very-nice places.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(Patch by adf88, #6583)
|
|
coordinates to underlying tile coordinates (Patch by adf88, #6583)
|
|
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.
|
|
|
|
DetailedFileType.
|
|
definitions.
|
|
|
|
configured height
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
|
|
a set for marking the flow area of a river
|
|
simplify calculation of explosion points when clearing.
|
|
information for situations when we only want to know if a tile is flat or not (cirdan, LordAro)
|
|
|
|
related classes
|
|
loop. (monoid)
|
|
as well.
|
|
|
|
|
|
changes to reduce casting
|
|
for the water/river code
|
|
TILE_HEIGHT for the snow line code
|
|
use it
|
|
Get*PixelZ functions, and let Get*PixelZ wrap around the new function (multiplying the Z by TILE_HEIGHT) just like TileHeight and TilePixelHeight
|
|
functions if they return the Z in pixels (like TilePixelHeight)
|
|
the map (mhl)
|
|
|
|
lake is created
|
|
|
|
|
|
|
|
paused mode. They block the view.
|
|
|
|
|
|
that can be cleared/terraformed by a company
|
|
|
|
Based on patch by fonsinchen
|