Skip to content

Commit

Permalink
fix: be slightly less aggressive w/ pops w/ high perf/threads
Browse files Browse the repository at this point in the history
  • Loading branch information
tazlin committed Oct 4, 2024
1 parent cfc62eb commit 0c54357
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions horde_worker_regen/process_management/process_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3331,11 +3331,11 @@ async def api_job_pop(self) -> None:
seconds_to_wait = self.get_pending_megapixelsteps() * 0.9

if self.bridge_data.max_threads > 1:
seconds_to_wait *= 0.25
seconds_to_wait *= 0.75

if self.bridge_data.high_performance_mode:
seconds_to_wait *= 0.25
if seconds_to_wait < 20:
seconds_to_wait *= 0.35
if seconds_to_wait < 25:
seconds_to_wait = 1
elif self.bridge_data.moderate_performance_mode:
seconds_to_wait *= 0.5
Expand Down

0 comments on commit 0c54357

Please sign in to comment.