Gleb Mazovetskiy
0f77cc3797
Force-inline methods to improve debug build perf
...
This has little or no effect on the optimized build
but significantly improves performance of the headless debug build
`timedemo_test` on my machine goes from 3s to 2s.
3 years ago
Gleb Mazovetskiy
5bf0b8bc96
Add more missing <cstdint> includes
...
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
3 years ago
Anders Jenbo
b7424a0068
Clean up PmChangeLightOff()
3 years ago
Anders Jenbo
124cc71800
Update realtime lighting when static lights are changed
3 years ago
Anders Jenbo
acf98f2bdc
Fix wrong check for light level
...
Introduced in 13c5c09990
3 years ago
Anders Jenbo
f345087e75
Fix Lazarus glowing inside the wall
3 years ago
Anders Jenbo
4db65d94de
Add glow to Crypt lava tiles
3 years ago
Anders Jenbo
eef0b10e1f
Hellfire: Fix light fall off not with in it's radious
3 years ago
Anders Jenbo
6ba5998a97
Unset all vision before updating current ones
3 years ago
Anders Jenbo
d8b5c3a970
Fix light brightness pop on load
3 years ago
Anders Jenbo
828a52dc6d
Clean up ProcessLightsList()
3 years ago
qndel
731ad1ada5
use std::rotate ( #6019 )
3 years ago
Anders Jenbo
e969a8ad01
Invert player to vision relation
3 years ago
Anders Jenbo
231f6814f7
Use rectangle logic in vision and lighting updates
3 years ago
Anders Jenbo
382212b98c
Remove DisableLighting from release builds
3 years ago
Anders Jenbo
13c5c09990
Clean up Light related naming
...
A few are left unchanged as they will be removed in a later commit
3 years ago
Anders Jenbo
3304e8a542
Clean up lighting_color_cycling()
3 years ago
Anders Jenbo
0b19c2fd4f
Assert correct use of LightFalloffs
3 years ago
Anders Jenbo
3723fb2cf0
Clean up light table generation
3 years ago
Anders Jenbo
53d4e72e19
Fix Hell modification of the light table
...
There was a precission issue that caused some jitter in the light table.
This is solved and made made more redable by using a shift instead of
tricky use of remander from a devision.
3 years ago
Anders Jenbo
b36709666b
Clean up Nest and Crypt modifications to the light table
3 years ago
Anders Jenbo
8ef94f7cc0
Only generate the relevant version of LightFalloffs
3 years ago
Anders Jenbo
2afcd9e654
Cleanup generation of LightConeInterpolations
3 years ago
Anders Jenbo
5d57d5a323
Rename lightradius and lightblock
3 years ago
Anders Jenbo
dc2d97c112
Split lighting shades from trn tables
3 years ago
Anders Jenbo
f9b5c61f68
Extract pause translations table as a data file
3 years ago
Anders Jenbo
7aee0b311b
Fix light smearing when walking ( #6002 )
3 years ago
Anders Jenbo
779f16280c
Consistently use uint8_t for lighting values
3 years ago
Gleb Mazovetskiy
6327e713e0
Lowercase all file paths
...
We want to be able to use unpacked MPQs on low-end platforms
(PS2/rg99/etc).
This is tricky on case-sensitive filesystems. Avoids case issues by
lowercasing all paths in the code (then we'll just need lowercased
listfiles).
4 years ago
Vladimir Olteanu
8fd3be67b5
Refactor VisionCrawlTable
4 years ago
Anders Jenbo
2d21fc372e
Remove more miniwin code
4 years ago
Andrew James
593a9f3b4b
Pull distinct points from VisionCrawlTable used by guardians ( #4844 )
4 years ago
Gleb Mazovetskiy
c8ddf7df65
Crawl: Move implementation from header to cpp
4 years ago
Vladimir Olteanu
bed5bd9ec1
Eliminate CrawlTable
4 years ago
Gleb Mazovetskiy
3b2e560fa0
Non-int versions of `Point` and `Displacement` ( #4824 )
...
* Non-int versions of `Point` and `Displacement`
This will allow us to make some structs, such as `ActorPosition`, much
smaller.
* ActorPosition: Use smaller types
`Monsters`: 56K -> 46K
* player.cpp: Reduce size of `DirectionSettings`
* CrawlTable: Displacement -> DisplacementOf<int8_t>
* CrawlTable: vector<vector> -> array<vector>
Also only allocate one vector during construction instead of two.
A bit less indirection.
* Monster#enemyPosition: Point -> WorldTilePosition
sizeof(Monster): 240 -> 232
* Monster: Further optimize field layout and sizes
sizeof(Monster): 232 -> 208
`Monsters` is down to 40,000 bytes
* DMonsterStr: _mx/_my -> position
4 years ago
Vladimir Olteanu
5a5111f1d8
Refactor CrawlTable ( #4833 )
4 years ago
Anders Jenbo
860bd1cebf
Operate directly on SOL data
4 years ago
obligaron
19749420b5
Introduce Player::isOnActiveLevel
4 years ago
Anders Jenbo
1203514383
Clean up use of currlevel
4 years ago
Andrew James
1047e408bd
Simplify logic of UpdateMissilePos using helpers from 4620 ( #4621 )
4 years ago
qndel
354e329644
Players[MyPlayerId] -> MyPlayer
4 years ago
obligaron
1124dd1bd2
Don't show hostile players in automap
4 years ago
Brandon Cullen
926f6b44bc
Minimize direct usage of Lights[] global
4 years ago
Vladimir Olteanu
25d412d1ac
Remove duplicate code in DoLighting
4 years ago
qndel
b7b01ce1fd
remove InitLightMax
4 years ago
Andrew James
796e2813cf
Use scoped enums for DungeonFlags/BFLAG ( #3135 )
4 years ago
qndel
e567953bc9
Sharing automap exploration in multiplayer
4 years ago
qndel
0ccdf940f7
fix bounds checks ( #3237 )
4 years ago
qndel
5c6b1693b4
OOB bugfix
4 years ago
qndel
f8cda02456
apply bounds check function
4 years ago