@@ -83,10 +83,10 @@ private async UniTaskVoid InitializeAsync(PassportWebViewConfig config)
8383 // Create WebView prefab and parent to Canvas
8484 _webViewPrefab = CanvasWebViewPrefab . Instantiate ( ) ;
8585 PassportLogger . Info ( $ "{ TAG } CanvasWebViewPrefab created successfully") ;
86- _webViewPrefab . Native2DModeEnabled = false ; // Use standard mode for better desktop compatibility
86+ _webViewPrefab . Native2DModeEnabled = true ; // Use Native2DMode for better performance on desktop
8787
88- // Set higher resolution for desktop - MacOS can handle larger textures
89- _webViewPrefab . Resolution = 1.5f ; // 1.5px per Unity unit for crisp rendering
88+ // Set lower resolution for faster loading and rendering
89+ _webViewPrefab . Resolution = 0.75f ; // Balanced resolution for desktop
9090
9191 // Must be child of Canvas for Vuplex to work
9292 _webViewPrefab . transform . SetParent ( _canvasReference . canvas . transform , false ) ;
@@ -96,9 +96,9 @@ private async UniTaskVoid InitializeAsync(PassportWebViewConfig config)
9696 rect . anchorMin = new Vector2 ( 0.5f , 0.5f ) ; // Center anchor
9797 rect . anchorMax = new Vector2 ( 0.5f , 0.5f ) ;
9898
99- // Use configured dimensions or fallback to desktop-appropriate defaults
100- float width = config . Width > 0 ? config . Width : 1200 ;
101- float height = config . Height > 0 ? config . Height : 800 ;
99+ // Use configured dimensions or fallback to desktop-appropriate defaults (optimized for performance)
100+ float width = config . Width > 0 ? config . Width : 600 ;
101+ float height = config . Height > 0 ? config . Height : 650 ;
102102 rect . sizeDelta = new Vector2 ( width , height ) ;
103103 rect . anchoredPosition = Vector2 . zero ; // Center position
104104
0 commit comments