Skip to content

[BUG] Game loop freezes the editor GUI #14

Description

@Natuworkguy

What happened?

Clicking Run Game from the editor starts the core game loop on the same thread as the Tkinter editor, which causes the editor window to freeze or become unresponsive while the game is running.

Version

ABS Engine 0.1.3

Steps to reproduce

  1. Open ABS Engine.
  2. Open or create a project.
  3. Click Run Game in the editor.
  4. Observe that the editor GUI stops responding until the game loop exits.

Expected behavior

The editor GUI should remain responsive while the game is running, or the game should run in a separate process/thread/event loop that does not block the editor.

Relevant code

run_game() in engine/gui.py directly calls self.core_game.run(), and the main loop in engine/core/__init__.py is a blocking while self.running loop.

Environment

Windows / Linux / macOS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions