Files
crystall-punk-14/Content.Client
Pieter-Jan Briers 1d5a06612a Optimize parallax VRAM usage (#37180)
* Disable parallax texture preloading

Many parallax layers are specific to a single map and will likely never be loaded for the duration of the game. Save VRAM by not loading them always.

Requires engine master

* Put generated parallax identifier in texture name

Makes it show up properly in debugging tools

* Don't load generated parallaxes multiple times

Many parallax prototypes re-use the same generated parallax configs. These generated parallaxes were being loaded multiple times at once, which was a massive waste of VRAM.

We now move these into a separate cache for deduplication. I had to write a lot of logic to handle loading cancellation and ref counting. Yay.

Also fixes some spaghetti with the previous parallax loading system: cancellation didn't work properly, give proper names to generated texture names, etc.

This saves like 100+ MB of VRAM.
2025-05-22 11:22:08 +10:00
..
2025-05-02 18:22:29 +10:00
2024-07-26 10:30:49 -07:00
2023-09-28 20:48:50 +10:00
2025-05-02 18:22:29 +10:00
2025-04-18 13:45:48 +10:00
2025-05-20 01:08:55 -04:00
2025-04-19 16:20:40 +10:00
2024-08-25 22:05:39 +10:00
2025-04-21 12:24:44 +02:00
2025-04-19 16:20:40 +10:00
2025-04-19 16:20:40 +10:00
…
2025-04-30 17:49:36 +10:00
2025-05-02 18:18:08 +10:00
2025-05-17 13:20:11 -04:00
2024-09-24 19:02:51 +02:00
2025-05-22 11:22:08 +10:00
2025-04-10 22:19:48 -07:00
2025-05-18 17:47:35 +10:00
2025-02-12 23:46:02 -05:00
2024-06-09 15:18:54 -04:00
2023-10-24 10:23:56 -04:00
2025-05-02 18:18:08 +10:00
2024-07-21 17:17:59 +10:00
…
2024-08-25 22:18:42 +10:00
2023-09-22 15:01:05 -05:00
2024-08-23 11:14:38 +02:00
2025-05-18 14:02:52 +10:00
2023-10-01 16:46:09 -04:00
2024-08-25 22:18:42 +10:00
2025-05-17 15:22:40 +10:00
2024-12-17 20:18:15 +01:00
2025-02-08 17:17:55 +11:00
2024-09-26 18:55:59 +02:00
2025-05-20 01:08:55 -04:00
2025-02-23 18:23:00 +11:00