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

Pause/unpause Actors and Entities feature #3076

Open
eonarheim opened this issue May 27, 2024 · 1 comment
Open

Pause/unpause Actors and Entities feature #3076

eonarheim opened this issue May 27, 2024 · 1 comment
Labels
feature Label applied to new feature requests stale This issue or PR has not had any activity recently

Comments

@eonarheim
Copy link
Member

Context

Sometimes it is useful to pause the update and/or draw of an actor without removing it from the scene to save on performance.

One examples might be NPCs that exist offscreen and don't need to run their logic until they are onscreen.

Proposal

Add a new method (open to different names) .pause() or .unpause() that should leverage the entity.active property to suspend updates and/or drawing.

.kill() should be updated to use a different property internally.

@eonarheim eonarheim added the feature Label applied to new feature requests label May 27, 2024
Copy link

This issue hasn't had any recent activity lately and is being marked as stale automatically.

@github-actions github-actions bot added the stale This issue or PR has not had any activity recently label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Label applied to new feature requests stale This issue or PR has not had any activity recently
Projects
None yet
Development

No branches or pull requests

1 participant