vr调试修复
This commit is contained in:
parent
37139446c4
commit
7f2a8f5d86
@ -3061,6 +3061,46 @@ class VRManager(DirectObject):
|
||||
if self.optimization:
|
||||
self.optimization.performance_mode_trigger_frame = value
|
||||
|
||||
# GC控制属性代理 - 修复'gc_control_enabled'属性访问问题
|
||||
@property
|
||||
def _gc_control_enabled(self):
|
||||
"""GC控制启用状态 - 代理到优化模块"""
|
||||
if self.optimization:
|
||||
return self.optimization._gc_control_enabled
|
||||
return True
|
||||
|
||||
@_gc_control_enabled.setter
|
||||
def _gc_control_enabled(self, value):
|
||||
"""GC控制启用状态设置 - 代理到优化模块"""
|
||||
if self.optimization:
|
||||
self.optimization._gc_control_enabled = value
|
||||
|
||||
@property
|
||||
def _gc_disabled(self):
|
||||
"""GC禁用状态 - 代理到优化模块"""
|
||||
if self.optimization:
|
||||
return self.optimization._gc_disabled
|
||||
return False
|
||||
|
||||
@_gc_disabled.setter
|
||||
def _gc_disabled(self, value):
|
||||
"""GC禁用状态设置 - 代理到优化模块"""
|
||||
if self.optimization:
|
||||
self.optimization._gc_disabled = value
|
||||
|
||||
@property
|
||||
def _manual_gc_interval(self):
|
||||
"""手动GC间隔 - 代理到优化模块"""
|
||||
if self.optimization:
|
||||
return self.optimization._manual_gc_interval
|
||||
return 900
|
||||
|
||||
@_manual_gc_interval.setter
|
||||
def _manual_gc_interval(self, value):
|
||||
"""手动GC间隔设置 - 代理到优化模块"""
|
||||
if self.optimization:
|
||||
self.optimization._manual_gc_interval = value
|
||||
|
||||
# 分辨率缩放属性代理
|
||||
@property
|
||||
def resolution_scale(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user