Open Sloofy opened 1 year ago
that's a really good idea
I would actually suggest having up or down buttons, since you could easily have more than 4 threads on machines with better CPUs, and it would prevent the need for checking whatever the user inputs.
Right now it seems like toast just assumes you have a max of 4 hyperthreads but it seems like it wouldn't be too hard to have that maximum changed from 4 to whatever OS.get_processor_count()
returns.
It doesn't assume - it uses the old endpoint of /reithreads
which was initially for the number of threads but I changed it to be the max no. of threads, as the new endpoint will specify that instead. I'll set it to a higher number for now.
Since the acceptable thread count got larger recently, I agree on having up or down buttons instead. I can still see dropdowns working elsewhere in other future options (should they come). I'll just leave this issue up for the time being.
Summary
Options that are confined to a specific narrow range like number of threads should have a dropdown menu for what you can pick from. This would be helpful in resolving issues like #10 and #13 by preventing inputs that shouldn't be allowed and streamlining the acceptable range clearly. It also doesn't make sense for certain settings to be text fields.
Current behaviour:
Proposed behaviour: