Skip to content
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

WIP: Benchmarking framework #116

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Conversation

dbeef
Copy link
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
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