Skip to content

Conversation

@MorquinDevlar
Copy link
Contributor

Mapper System Updates: Global Zone Offsets and Caching

Changes

  • Added global zone offset tracking with thread-safe operations
  • Implemented zone-based canonical map caching
  • Added room-to-mapper lookup cache
  • Added force refresh capability for map rebuilding
  • Added error checking and logging in GetMapper
  • Added validation for zone root rooms
  • Pre-allocated maps and slices
  • Added deterministic exit processing
  • Separated mapper functionality into components
  • Added experimental features section

Technical Details

New global variables for zone offset tracking:

globalZoneOffsets      = make(map[string]positionDelta)
globalZoneOffsetsMutex = &sync.Mutex{}
offsetsProcessedOrQueued = make(map[string]bool)

Modified:

  • GetMapper: Uses canonical zone-based caching
  • CalculateGlobalOffsets: New function for world coordinates
  • PreCacheMaps: Includes global offset calculation
  • GetCoordinates: Uses global zone offsets

@MorquinDevlar MorquinDevlar requested a review from Volte6 May 7, 2025 20:43
@Volte6
Copy link
Member

Volte6 commented May 8, 2025

This is addressed in this PR: #372

@Volte6 Volte6 closed this May 8, 2025
@MorquinDevlar MorquinDevlar deleted the mapper-coordinates branch May 8, 2025 07:28
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.

2 participants