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

Self build is slower than the official. #3301

Open
Aeons93 opened this issue Sep 20, 2024 · 1 comment
Open

Self build is slower than the official. #3301

Aeons93 opened this issue Sep 20, 2024 · 1 comment
Assignees

Comments

@Aeons93
Copy link

Aeons93 commented Sep 20, 2024

Bug description

I compiled and built the grabber.exe file without any modifications but found it ran worse than the official.

Expected behavior

I assumed that it would run just the same as the official release.

Context

No modifications to source code.

System information

  • OS: Windows 10
  • Processor: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
  • Grabber version: 7.12.2
  • Visual Studio 2022
  • Qt 6.8

Additional context

I followed the documentation of what dependencies were needed including the optional ones.

Is there something I am missing for how to setup the project before compiling and during the build?

@Aeons93 Aeons93 added the bug label Sep 20, 2024
@Bionus Bionus self-assigned this Sep 29, 2024
@Bionus Bionus removed the bug label Sep 29, 2024
@Bionus
Copy link
Owner

Bionus commented Sep 29, 2024

There's no reasons for a self build to run worse than the official 🤔
Are you maybe building it in Debug mode? That can cause perf to be worse, since it adds a bunch of stuff to the program.

The build commands should look something like:

mkdir build
cd build
cmake ..\src -DCMAKE_BUILD_TYPE=Release
cmake --build . --config Release

Not sure if the CMAKE_BUILD_TYPE and --config flags are truly necessary, but at least you'd be sure it's running in Release mode, and not Debug.

Or if you're building straight from Visual Studio, just change the build mode to Release 😄

PS: any reason to run your own build? If you want the latest changes, the nightly version is available for that.

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

No branches or pull requests

2 participants