cg_main: reorder the game data loading#3312
Conversation
- Load map geometry at first so map entities are read and texture options are read before loading textures. - Load game data explicitly with explicit options before loading configs that may load them implicitly.
9dd6665 to
f37ea0d
Compare
DolceTriade
left a comment
There was a problem hiding this comment.
Didn't test but looks reasonable
slipher
left a comment
There was a problem hiding this comment.
That's a very hacky way to solve the sRGB code's issues, but it is a good idea for a different reason: see DaemonEngine/Daemon#1079 (comment). This forces some of the translucent weapon effects to always in front of translucent map surfaces, rather than always behind them.
LGTM modulo comment
|
|
||
| CG_InitMinimap(); | ||
|
|
||
| /* Always do this before loading any texture, as texture options may have |
There was a problem hiding this comment.
If you are going to say this please link to the issue/PR, since this code is not merged and may end up working in a different way, or have that issue fixed soon afterward.
f37ea0d to
571f405
Compare
I assume this just creates the opposite problem: every projectile etc. will be rendered in front of map translucent surfaces that it might actually be behind. This does seem to improve things though, as this problem is comparatively rare. |
Correct. |
571f405 to
bd8c69b
Compare
Reorder the game data loading.
Required by: