def _determine_optimal_scaling(self) -> ScalingConfig:
        """Determine the optimal scaling configuration for HD displays (1280x720)."""
        config = DEFAULT_SCALING_CONFIG.copy()
        
        # Get current resolution
        print(f"Current resolution: {self.width}x{self.height}")
        
        # For 720p displays, use simple 1:1 scaling (no scaling)
        if abs(self.width - 1280) <= 100 and abs(self.height - 720) <= 100:
            config["mode"] = ScalingMode.RELATIVE
            config["scale_factor"] = 1.0
            print("Using 1:1 scaling for HD (720p) display")
        else:
            # For any other resolution, scale to match HD
            config["mode"] = ScalingMode.FIXED
            config["target_resolution"] = DEVICE_CATEGORIES["HD"]
            print(f"Scaling to target HD resolution: 1280x720")
        
        # Print final configuration
        print(f"Scaling config: mode={config['mode']}, scale_factor={config['scale_factor']}")
        return config
Determine the optimal scaling configuration for HD displays (1280x720).
src/upsonic/server/level_utilized/cu/computer.py