Skip to content

Simulation speed#29

Merged
SzeMrok merged 2 commits intomainfrom
simulation_speed
Jan 19, 2026
Merged

Simulation speed#29
SzeMrok merged 2 commits intomainfrom
simulation_speed

Conversation

@KamilKr1355
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds a simulation speed control feature that allows users to adjust the speed of the simulation in real-time through a UI slider.

Changes:

  • Added a speed control UI section with a label and horizontal slider (range 0.1x to 10.0x)
  • Implemented simulation speed adjustment by modifying the sleep duration in the simulation loop
  • Added event handling to update the environment speed and UI label when the slider is moved

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/ui.py Added speed control container with label and slider, plus event handler for slider movement
src/environment.py Added sim_speed attribute, set_speed method, and modified simulation loop to use speed multiplier

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@SzeMrok SzeMrok merged commit 9cda791 into main Jan 19, 2026
6 of 7 checks passed
@SzeMrok SzeMrok deleted the simulation_speed branch January 19, 2026 11:35
@SzeMrok SzeMrok restored the simulation_speed branch January 19, 2026 11:35
@SzeMrok SzeMrok deleted the simulation_speed branch January 19, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants