@@ -570,6 +570,7 @@ private static void ResetGeneralDefaults()
570570 private static int _avatarRateLastFps = - 1 ;
571571 private static int _avatarRateLastRate = - 1 ;
572572 private static bool _avatarRateWarnShown ;
573+ private const int AvatarRateWarningPollInterval = 15 ;
573574
574575 private static void UpdateAvatarRateWarning ( )
575576 {
@@ -580,11 +581,17 @@ private static void UpdateAvatarRateWarning()
580581 _avatarRateTickSubscribed = false ;
581582 return ;
582583 }
584+
583585 if ( _avatarRateSlider == null || ! _avatarRateSlider . gameObject . activeInHierarchy )
584586 {
585587 return ;
586588 }
587589
590+ if ( Time . frameCount % AvatarRateWarningPollInterval != 0 )
591+ {
592+ return ;
593+ }
594+
588595 int fps = Mathf . RoundToInt ( BasisFrameClock . SmoothedFramesPerSecond ) ;
589596 int rate = Mathf . RoundToInt ( BasisSettingsDefaults . P2PAvatarSyncRate . RawValue ) ;
590597 bool insufficient = fps > 0 && rate > Mathf . RoundToInt ( fps * 1.02f ) ;
@@ -1723,13 +1730,6 @@ private static void BuildAppearanceContent(RectTransform container)
17231730 BasisLocalization . Get ( "settings.chat.pickup.lineColor" ) ,
17241731 BasisSettingsDefaults . PickupLineColor , pickupLineColorInit ,
17251732 c => Basis . Scripts . UI . BasisRaycastLineCustomization . PreviewInteractionLineColor ( c ) ) ;
1726-
1727- PanelElementDescriptor uiColorsHeader = PanelElementDescriptor . CreateNew (
1728- PanelElementDescriptor . ElementStyles . Group , container ) ;
1729- uiColorsHeader . SetTitle ( BasisLocalization . Get ( "settings.chat.uicolors.title" ) ) ;
1730- uiColorsHeader . SetDescription ( BasisLocalization . Get ( "settings.chat.uicolors.description" ) ) ;
1731-
1732- SettingsProviderUIStyle . BuildColorPickers ( container ) ;
17331733 }
17341734
17351735 private static void ResetChatDefaults ( )
0 commit comments