"Application is not responding" while REPL is open #75

Closed
opened 2025-03-03 18:55:23 +00:00 by john · 1 comment
Owner

gotta admit, might be a wontfix, but should investigate doing the REPL step on a separate thread, and letting the SFML window respond, even if events are blocked from interacting with Python

gotta admit, might be a wontfix, but should investigate doing the REPL step on a separate thread, and letting the SFML window respond, even if events are blocked from interacting with Python
john added the
Bugfix
label 2025-03-03 18:55:23 +00:00
Author
Owner

Superseded by ImGui Console

The new ImGui-based console (see #36) replaces the blocking PyRun_InteractiveLoop REPL. The game window now remains responsive while the console is open:

  • Python commands execute synchronously but in-frame (quick commands are instant, long operations still block)
  • The console uses ImGui text input instead of stdin, so the window doesn't freeze waiting for terminal input
  • Press ~ to toggle the console overlay

The old REPL code (McRFPy_API::REPL()) still exists and can be removed in a future cleanup.

Recommendation: Close as "superseded" - the new console architecture inherently solves this issue.

## Superseded by ImGui Console The new ImGui-based console (see #36) replaces the blocking `PyRun_InteractiveLoop` REPL. The game window now remains responsive while the console is open: - Python commands execute synchronously but in-frame (quick commands are instant, long operations still block) - The console uses ImGui text input instead of stdin, so the window doesn't freeze waiting for terminal input - Press `~` to toggle the console overlay The old REPL code (`McRFPy_API::REPL()`) still exists and can be removed in a future cleanup. **Recommendation**: Close as "superseded" - the new console architecture inherently solves this issue.
john closed this issue 2025-11-27 01:04:06 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: john/McRogueFace#75
No description provided.