BigK-hub / pomodoro_timer

a software for a timer, which can be used for studying or various other things you need a timer for
1 stars 0 forks source link

increase performace #6

Open BigK-hub opened 1 year ago

BigK-hub commented 1 year ago

eventhough the program runs at a good fps, try squeezing as much performance out of it as possible, as well as reducing the size

domjanabi commented 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.

domjanabi commented 1 year ago

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

BigK-hub commented 1 year ago

thank you so much I will work on implementing thsoe changes

domjanabi commented 1 year ago

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.

BigK-hub commented 1 year ago

will work on that thank you