mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 13:35:35 -04:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 84e7677ce7 |
@@ -254,6 +254,15 @@ void Overlay::update() {
|
||||
mFpsCounter->SetAttribute("open", "");
|
||||
mFpsCounter->SetAttribute("corner", kFpsCorners[idx]);
|
||||
|
||||
if(idx == 2 && mPipelineProgress && mPipelineProgress->GetAttribute("open")) {
|
||||
// 12 (height of pipeline box off bottom) + height of pipeline box + 3 (padding space)
|
||||
mFpsCounter->SetProperty(Rml::PropertyId::Bottom, Rml::Property(15 + mPipelineProgress->GetOffsetHeight(), Rml::Unit::PX));
|
||||
}
|
||||
else {
|
||||
// Return fps counter to default height off the bottom
|
||||
mFpsCounter->SetProperty(Rml::PropertyId::Bottom, Rml::Property(12, Rml::Unit::PX));
|
||||
}
|
||||
|
||||
const Uint64 perfFreq = SDL_GetPerformanceFrequency();
|
||||
float fps = aurora_get_fps();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user