mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
changed task duration warning config, default threshold to 40
This commit is contained in:
parent
79050b0db3
commit
535d898e66
@ -356,7 +356,7 @@ class TaskManager:
|
||||
OsdPrefix = 'task.'
|
||||
|
||||
# multiple of average frame duration
|
||||
DefTaskDurationWarningThreshold = 4.
|
||||
DefTaskDurationWarningThreshold = 40.
|
||||
|
||||
def __init__(self):
|
||||
self.running = 0
|
||||
@ -385,7 +385,7 @@ class TaskManager:
|
||||
|
||||
# We don't have a base yet, but we can query the config
|
||||
# variables directly.
|
||||
self.warnTaskDuration = ConfigVariableBool('task-duration-warnings', 1).getValue()
|
||||
self.warnTaskDuration = ConfigVariableBool('want-task-duration-warnings', 1).getValue()
|
||||
self.taskDurationWarningThreshold = ConfigVariableDouble(
|
||||
'task-duration-warning-threshold',
|
||||
TaskManager.DefTaskDurationWarningThreshold).getValue()
|
||||
|
Loading…
x
Reference in New Issue
Block a user