Skip to content

Commit

Permalink
add PresentMon 2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
BoringBoredom committed Apr 8, 2024
1 parent 7c608e4 commit 9c48ee0
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 97 deletions.
150 changes: 75 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion presentmon/Run.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pushd %~dp0
cd captures
..\presentmon.exe -multi_csv -no_top -hotkey "f10"
..\presentmon.exe --multi_csv --no_console_stats --hotkey "F10"
2 changes: 1 addition & 1 deletion presentmon/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.10.0
2.0.1
16 changes: 15 additions & 1 deletion src/components/Misc/Misc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ import { sortOptions } from "../static";
async function aggregate(files: File[], resetRef: React.RefObject<() => void>) {
let first = true;
let content = "";
let indicator: "frametime" | "msbetweenpresents";
let indicator:
| "frametime"
| "msbetweenpresents"
| "cpubusy"
| "render latency(msec)";

for (const file of files) {
const text = await file.text();
Expand All @@ -35,6 +39,16 @@ async function aggregate(files: File[], resetRef: React.RefObject<() => void>) {
indicator = "msbetweenpresents";
break;
}

if (lowerCaseLine.includes("cpubusy")) {
indicator = "cpubusy";
break;
}

if (lowerCaseLine.includes("render latency(msec)")) {
indicator = "render latency(msec)";
break;
}
}

content += text;
Expand Down
5 changes: 3 additions & 2 deletions src/components/ReadMe/ReadMe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,16 @@ export default function ReadMe() {
className={s.cursor}
onClick={() => {
void navigator.clipboard.writeText(
`pushd %~dp0\ncd captures\n..\\presentmon.exe -multi_csv -no_top -hotkey "f10"`
`pushd %~dp0\ncd captures\n..\\presentmon.exe --multi_csv --no_console_stats --hotkey "F10"`
);
}}
>
pushd %~dp0
<br />
cd captures
<br />
..\presentmon.exe -multi_csv -no_top -hotkey &quot;f10&quot;
..\presentmon.exe --multi_csv --no_console_stats --hotkey
&quot;F10&quot;
</Code>
</Tooltip>
<Text>
Expand Down
Loading

0 comments on commit 9c48ee0

Please sign in to comment.