-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No stdout flush in console PresentMon 2.0. Is it intended? #232
Comments
Thanks, this wasn't intended I'll add it back in. |
Excellent, thanks! |
This was accidentally removed 2.0.0, causing data lag issues for tools using PresentMon console application with stdout output. See issue #232
The issue was listed as fixed in 2.0.1, but it looks like it was not included in this version. |
It should be in 2.0.1:
Why don't you think so -- are you still seeing this lag behaviour? |
Never mind, it's missing for non --v1_metrics metrics for some reason :( https://github.com/GameTechDev/PresentMon/blob/v2.0.1/PresentMon/CsvOutput.cpp#L326 Sorry about that, not sure how it happened, will fix asap. |
Flushes were accidentally removed at some point. v2.0.1 added them back in, but only for the --use_v1_metrics CSV. This change adds them back in for the default CSV as well. See issue #232
Sorry for bumping. Tired 2.1.0 but it seems to be missing there. |
Just peeked inside https://github.com/GameTechDev/PresentMon/archive/refs/tags/v2.1.0.zip and confirmed that fflush inside CsvOutput.cpp is still called for V1 metrics only. Please don't forget to include fflush for 2.0 metrics too in future versions. |
Flushes were accidentally removed at some point. v2.0.1 added them back in, but only for the --use_v1_metrics CSV. This change adds them back in for the default CSV as well. See issue #232
Noticed issues with much increased data lag in scenarios when I try to read data via stdout and console PresentMon-2.0.0-x64.exe comparing to the previous console versions. I started investigating it and nailed it down to fflush(stdout), which is performed inside UpdateCsv in V1.x but missing in V2.0. Was it intended, or flushing was simply lost during refactoring? If so, can it be returned back please?
In meanwhile I solved it by building a custom version PresentMon-2.0.0-x64.exe and adding the following to the very end of UpdateCsvT:
The text was updated successfully, but these errors were encountered: