Skip to content

WIP: Benchmarking framework#116

Open
dbeef wants to merge 9 commits intomasterfrom
feature/benchmarking-framework
Open

WIP: Benchmarking framework#116
dbeef wants to merge 9 commits intomasterfrom
feature/benchmarking-framework

Conversation

@dbeef
Copy link
Copy Markdown
Owner

@dbeef dbeef commented Sep 5, 2021

Still not sure whether to make benchmarking a special build option, or trigger it by passing a flag.
First one would cut unused code from the final binary and shorten build time by a little (because how often do you do benchmarking?). Additionally, code for benchmarking may simply not compile on some platforms (using filesystem).
The latter has the benefit of benchmarking without making a special build.

image

Moving benchmarking out into a separate target probably makes sense.

Benchmarking as a form of acceptance test done on CI doesn't make sense, because even if software-implemented OpenGL drivers are available in utilized Docker image, the same CPU time / hardware can't be asserted on each bulid so the FPS will vary significantly.

)

target_compile_definitions(
GameLoop PRIVATE $<IF:$<BOOL:${SPELUNKY_PSP_BENCHMARK_MODE}>,SPELUNKY_PSP_BENCHMARK_MODE,>
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in description, still not sure whether to make benchmarking a build option or a commandline argument.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant