mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 18:23:22 +02:00
correct stat collection for mixer frame time usage
This commit is contained in:
parent
667fa566d5
commit
5918c492cc
1 changed files with 3 additions and 0 deletions
|
@ -412,6 +412,9 @@ int main(int argc, const char* argv[]) {
|
|||
|
||||
if (percentageOfMaxElapsed > 0) {
|
||||
sumFrameTimePercentages += percentageOfMaxElapsed;
|
||||
} else {
|
||||
// a negative value suggests that we've taken 100% of the allowable time
|
||||
sumFrameTimePercentages += 100;
|
||||
}
|
||||
|
||||
numStatCollections++;
|
||||
|
|
Loading…
Reference in a new issue