Screen width in pixels
Whether device is mobile (from user-agent detection)
Performance tier
getPerformanceTier(320, true); // 'low' (extra-small mobile)
getPerformanceTier(768, true); // 'medium' (standard mobile)
getPerformanceTier(2712, true); // 'mobile-high' (Motorola Edge 60 Pro, 2K+ mobile)
getPerformanceTier(768, false); // 'medium' (tablet)
getPerformanceTier(1920, false); // 'high' (desktop)
Determine performance tier based on device characteristics
Now properly handles high-resolution mobile devices (Motorola Edge 60 Pro, etc.) by checking isMobile flag before using screen width to determine tier.