1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

Adjust frame colors.

This commit is contained in:
Bartosz Taudul 2017-09-18 19:03:29 +02:00
parent 4ce7f77cd9
commit de66ec5332

View File

@ -371,9 +371,9 @@ static ImU32 GetFrameColor( uint64_t frameTime )
enum { GoodTime = 1000 * 1000 * 1000 / 59 }; enum { GoodTime = 1000 * 1000 * 1000 / 59 };
enum { BadTime = 1000 * 1000 * 1000 / 29 }; enum { BadTime = 1000 * 1000 * 1000 / 29 };
return frameTime > BadTime ? 0xFF0000FF : return frameTime > BadTime ? 0xFF2222DD :
frameTime > GoodTime ? 0xFF00FFFF : frameTime > GoodTime ? 0xFF22DDDD :
frameTime > BestTime ? 0xFF00FF00 : 0xFFFFBB00; frameTime > BestTime ? 0xFF22DD22 : 0xFFDD9900;
} }
void View::DrawFrames() void View::DrawFrames()