Commit graph

12 commits

Author SHA1 Message Date
Anders Jenbo
b6bdbcfc98 Stip stippled transparency 2021-12-21 12:55:30 +01:00
obligaron
6273f700fa
Add some Graphic Settings to Settingsmenu (#3617) 2021-11-27 00:25:48 +01:00
Juliano Leal Goncalves
7da37da8c9 ♻️ Leverage 'Point' in 'RenderTile' function 2021-09-06 00:31:25 +02:00
Anders Jenbo
dce78dde62 Rename lighting globals 2021-07-08 02:01:14 -07:00
Gleb Mazovetskiy
cb0dae8590 🚚 Rename CelOutputBuf to Surface and extract 2021-07-03 05:33:32 -07:00
Anders Jenbo
8e07ef8fe5 Clang-tidy: misc-unused-parameters 2021-06-27 17:34:32 +02:00
Anders Jenbo
2bdb6caa07
Cleanup majority of remaning implicit bool conversions (#2234) 2021-06-26 21:05:45 +02:00
Anders Jenbo
af254601d6 ♻️ Apply clang-tidy to engine 2021-06-25 13:22:08 +02:00
Gleb Mazovetskiy
f624b9788c 🔥 Mark dun_render functions as hot 2021-05-13 01:54:27 +02:00
Gleb Mazovetskiy
4d10642b3d 🧹 Add and use a DVL_ALWAYS_INLINE macro
Also moves attribute macros out of miniwin into a new header.
2021-05-13 01:54:27 +02:00
Gleb Mazovetskiy
fb27ee3907 💨 dun_render.cpp: Faster RenderLine
Turns RenderLine line branches into template parameters, allowing the
compiler to eliminate the branches and also fully inline it.

Example FPS change

* In dungeon: 1450 -> 1530
* In town: 1655 -> 1700

Also splits RenderLine into 3 functions

Easier to read and also gives more useful profiling.
Apparently the most time is spent in `RenderLineOpaque`.

Also, mark them `inline` because that apparently hints GCC to inline
the function (in a later refactoring we can introduce attribute
always_inline instead where supported).
2021-05-12 08:17:14 +02:00
Gleb Mazovetskiy
59dd42692f 🚚 Move render.cpp to engine/render/dun_render.cpp 2021-05-06 21:30:06 +02:00
Renamed from Source/render.cpp (Browse further)