File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
src/Packages/Passport/Runtime/Scripts/Private/UI/WebViews Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -65,9 +65,9 @@ private async UniTaskVoid InitializeAsync(PassportWebViewConfig config)
6565 try
6666 {
6767 PassportLogger . Info ( $ "{ TAG } Starting Vuplex CanvasWebViewPrefab instantiation...") ;
68-
68+
6969 // Apply aggressive performance optimizations for macOS
70- try
70+ try
7171 {
7272 StandaloneWebView . SetCommandLineArguments (
7373 "--disable-gpu " +
@@ -84,15 +84,15 @@ private async UniTaskVoid InitializeAsync(PassportWebViewConfig config)
8484 {
8585 PassportLogger . Warn ( $ "{ TAG } Could not apply performance optimizations: { ex . Message } ") ;
8686 }
87-
87+
8888 // Create WebView prefab and parent to Canvas
8989 _webViewPrefab = CanvasWebViewPrefab . Instantiate ( ) ;
9090 PassportLogger . Info ( $ "{ TAG } CanvasWebViewPrefab created successfully") ;
91-
91+
9292 // Enable Native2DMode and additional performance settings
9393 _webViewPrefab . Native2DModeEnabled = true ; // Direct native rendering - fastest on desktop
9494 _webViewPrefab . Resolution = 0.5f ; // Balanced resolution for desktop
95-
95+
9696 // Additional 2D mode optimizations
9797 if ( _webViewPrefab . Native2DModeEnabled )
9898 {
@@ -122,7 +122,7 @@ private async UniTaskVoid InitializeAsync(PassportWebViewConfig config)
122122 await _webViewPrefab . WaitUntilInitialized ( ) ;
123123 var initTime = ( System . DateTime . Now - startTime ) . TotalSeconds ;
124124 PassportLogger . Info ( $ "{ TAG } Vuplex WebView initialization completed in { initTime : F2} s") ;
125-
125+
126126 // Pre-load the login page for instant display
127127 try
128128 {
You can’t perform that action at this time.
0 commit comments