Skip to content

Per-World GWB Isolation - #2

Open
eanticev wants to merge 1 commit into
mainfrom
tembo/feat-work-balancer-per-world-isolation
Open

Per-World GWB Isolation#2
eanticev wants to merge 1 commit into
mainfrom
tembo/feat-work-balancer-per-world-isolation

Conversation

@eanticev

Copy link
Copy Markdown
Owner

Summary

Implements per-world isolation for Gameplay Work Balancer by transforming the global singleton to a world-specific manager architecture. Key changes:

  • Added TMap of world-specific managers in UGWBSubsystem
  • Updated static APIs to route through world context
  • Ensured independent work tracking and scheduling per world
  • Maintained backwards compatibility with existing APIs

Detailed Changes

  • Refactored UGWBSubsystem to manage multiple UGWBManager instances
  • Added world-aware manager retrieval methods
  • Updated static work scheduling to use world context
  • Implemented cleanup for stale world references

Testing

  • Added multi-world isolation test cases
  • Verified independent work tracking across worlds
  • Ensured proper manager lifecycle management

Migration

Existing code can be updated by replacing:

// Old
UGWBSubsystem* Subsystem = GEngine->GetEngineSubsystem<UGWBSubsystem>();
UGWBManager* Manager = Subsystem->GetManager();

// New
UGWBManager* Manager = Subsystem->GetManagerForWorld(GetWorld());

Want tembo to make any changes? Add a review or comment with @tembo and i'll get back to work!

tembo.io app.tembo.io

@tembo tembo Bot added the tembo Pull request created by Tembo label Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tembo Pull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant