All pastes #38249 Raw Edit

fix for craft lag

public text v1 · immutable
#38249 ·published 2006-01-23 21:00 UTC
rendered paste body
This is with my mods to craft engine, and to thread pools
all ai tasks are scheduled to AI pool
look,
all pools are almost constant # of scheduled tasks from uptime 1 hour to uptime 24 hours
and AI thread pool grows without any limit ... eventualy this is what will make lag
I will leave server up for as long as I can ...  I can't feel any lag for now but ... it will start
just want to see how many scheduled AI tasks I can have without feeling lag too much

Server Status:
  --->  Player Count: 7/1000
  +-->  Object Count: 33142
  +-->      AI Count: 4562
  +.... L2Item(Void): 485
  +.......... L2Item: 424
  +....... L2Monster: 30740
  +......... Minions: 1725
  +.. Minions Groups: 1098
  +........... L2Npc: 1287
  +............ L2Pc: 4
  +........ L2Summon: 7
  +.......... L2Door: 169
  +.......... L2Char: 0
  --->   Ingame Time: 6:32
  ---> Server Uptime: 24hrs 1mins 24secs
  --->      GM Count: 0



performance
HIGH (1)
ActiveThreads:    0
CompletedTasks:   11156
ScheduledTasks:   0
TaskCount(total): 11156
PoolSize:         4

MedHigh (1)
ActiveThreads:    0
CompletedTasks:   288213
ScheduledTasks:   7
TaskCount(total): 288220
PoolSize:         4

MEDIUM (-1)
ActiveThreads:    1
CompletedTasks:   396501
ScheduledTasks:   4
TaskCount(total): 396505
PoolSize:         4

LOW (-2)
ActiveThreads:    0
CompletedTasks:   10646231
ScheduledTasks:   375
TaskCount(total): 10646606
PoolSize:         4

AI (-1)
ActiveThreads:    0
CompletedTasks:   121417864
ScheduledTasks:   3460
TaskCount(total): 121421324
PoolSize:         4

CRAFT (-2)
ActiveThreads:    0
CompletedTasks:   64
ScheduledTasks:   0
TaskCount(total): 64
PoolSize:         4