18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-24 11:59:14 +01:00

perf(sleepers): the rails of each track for the fastenings worked out once and kept until its geometry is made again, it goes far or the crossings change, not again for every track laid around it; the fastenings laid only out to 30 m past where they're drawn, the tracks further out keeping their beams to lay them on as they come near; out past 50 m the tracks laid while the laying in a frame took under 2 ms, the rest in the frames after

This commit is contained in:
maj00r
2026-10-24 00:23:50 +02:00
parent 2e00619d7f
commit f155956669
8 changed files with 225 additions and 114 deletions

View File

@@ -610,6 +610,8 @@ class opengl46_renderer : public gfx_renderer {
unsigned int m_framestamp; // id of currently rendered gfx frame
unsigned int m_timbersweepframe { 0 }; // the frame the beams of the tracks far away were last let go in
unsigned int m_timberlayframe { 0 }; // the frame the time spent laying the beams is counted for
double m_timberlaying { 0.0 }; // in ms
float m_framerate;
double m_updateaccumulator{0.0};
std::string m_debugtimestext;