Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .coverage
Binary file not shown.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
*.pyc
*.pyc
.coverage
cov.xml
__pycache__/
*.py[cod]
*$py.class
339 changes: 0 additions & 339 deletions cov.xml

This file was deleted.

12 changes: 12 additions & 0 deletions src/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@ def __init__(self):
self.earlyGameGracePeriod = 50 # Number of ticks of protection for player
self.playerDamageReduction = 0.4 # 40% damage reduction for player during grace period
# During grace period, other creatures have 85% chance to avoid attacking player

# Population control settings to prevent lag
self.maxEntities = 50 # Starting maximum number of entities (will adjust dynamically)
self.minEntities = 20 # Minimum entities to maintain for gameplay
self.maxEntitiesLimit = 200 # Hard upper limit for entities
self.entityCullThreshold = 0.9 # Cull entities when population reaches 90% of max
self.entityCullTarget = 0.7 # Reduce population to 70% of max when culling
self.entityLogMaxSize = 50 # Maximum number of log entries per entity to prevent memory bloat

# Dynamic performance monitoring settings
self.lagThreshold = 0.05 # Tick time in seconds that indicates lag (50ms)
self.performanceWindow = 10 # Number of recent ticks to analyze for performance
Loading
Loading