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

Shows queue position on the GUI and informs on overload #28

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions StableHordeClient.gd
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ func _on_image_process_update(stats: Dictionary) -> void:
"eta": str(stats.wait_time)
}
progress_text.text = " {waiting} Waiting. {processing} Processing. {finished} Finished. ETA {eta} sec. Elapsed {elapsed} sec.".format(stats_format)
if stats.wait_time > 200 or stats.elapsed_time / 1000> 150:
status_text.text = "Unfortunately the Hoard appears to be under heavy load at the moment! Your queue position is {queue}.\n".format({"queue":stats.queue_position})\
+ "If you can, please consider adding your own GPU to the horde to get more generation priority!"
status_text.modulate = Color(0.84,0.47,0)
else:
status_text.text = "Your queue position is {queue}.\n".format({"queue":stats.queue_position})
status_text.modulate = Color(0,1,0)


func _on_viewport_resized() -> void:
Expand Down