17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-10-31 04:12:20 +01:00

perf(textures): with texture streaming read the data ahead of the camera instead of the whole scenery at load, drop read-ahead data unused for 5 min

This commit is contained in:
2026-10-23 23:35:02 +02:00
parent 336690ad8a
commit 794ac578de
5 changed files with 281 additions and 1 deletions

View File

@@ -202,6 +202,7 @@ public:
glm::vec3 m_rotationscaleangles { 0.0f, 0.0f, 0.0f };
glm::vec3 m_rotationscalescale { 1.0f, 1.0f, 1.0f };
bool m_rotationscalevalid { false };
bool m_texturesprefetched { false }; // the renderer had the data of its textures read ahead (gfx.textures.streaming)
material_data m_materialdata;
std::string asText; // tekst dla wyświetlacza znakowego