mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -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.'
|
OsdPrefix = 'task.'
|
||||||
|
|
||||||
# multiple of average frame duration
|
# multiple of average frame duration
|
||||||
DefTaskDurationWarningThreshold = 4.
|
DefTaskDurationWarningThreshold = 40.
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.running = 0
|
self.running = 0
|
||||||
@ -385,7 +385,7 @@ class TaskManager:
|
|||||||
|
|
||||||
# We don't have a base yet, but we can query the config
|
# We don't have a base yet, but we can query the config
|
||||||
# variables directly.
|
# variables directly.
|
||||||
self.warnTaskDuration = ConfigVariableBool('task-duration-warnings', 1).getValue()
|
self.warnTaskDuration = ConfigVariableBool('want-task-duration-warnings', 1).getValue()
|
||||||
self.taskDurationWarningThreshold = ConfigVariableDouble(
|
self.taskDurationWarningThreshold = ConfigVariableDouble(
|
||||||
'task-duration-warning-threshold',
|
'task-duration-warning-threshold',
|
||||||
TaskManager.DefTaskDurationWarningThreshold).getValue()
|
TaskManager.DefTaskDurationWarningThreshold).getValue()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user