Open BigK-hub opened 1 year ago
if better performance doesn't improve your program then optimising it is useless. You could spend that time optimising something that actually needs it. Reducing the size is a good idea tho.
You can probably reduce the amount of dependencies you use
Not sure what you need windows.h for but Sleep
can easily be replaced by std::this_thread::sleep_for
or std::this_thread::sleep_until
, you just need to #include <thread>
.
That will also make your program actually cross platform
thank you so much I will work on implementing thsoe changes
The window runs at 300 fps. This is kinda insane for a timer, monitor refresh rates tend to be between 60 and 144hz, going higher than that yields no benefit. IMO it should actually be running at 30 fps. Remember that the more resources your program takes up, the slower other programs will run.
will work on that thank you
eventhough the program runs at a good fps, try squeezing as much performance out of it as possible, as well as reducing the size