Mirelda’s RogAllyPerformanceOptimization (1.0)

ROG Ally Performance Optimization
What It Does
This addon is designed to provide a smoother gaming experience on the ROG Ally by balancing performance and graphics quality. It dynamically adjusts in-game graphics settings based on real-time FPS, aiming to keep your game running at a stable 45 FPS. When FPS drops, it lowers the graphics settings to maintain smooth gameplay, and when FPS stabilizes, it gradually improves the visual quality for the best possible balance.
What It Changes
The addon makes two types of adjustments:
– Static Settings: Right after the game launches, the addon applies a set of static optimizations to ensure a performance-first approach. This includes changes to general graphics, shadows, anti-aliasing, FSR, and more, reducing resource usage.
– Dynamic Adjustments: During gameplay, the addon dynamically tweaks four key settings based on the current FPS to balance graphics quality and performance:
– View Distance
– Sunlight Rays
– Distortion
– Show Additional Ally Effects
How It Works
1. Static Settings Initialization: When the addon loads, it immediately applies static optimizations and locks the four key settings to their lowest values to prioritize performance. For the first 60 seconds after launching the game, the graphics will stay at their lowest to prevent excessive resource usage.
2. Real-Time FPS Monitoring: The addon checks the current FPS every 300 milliseconds and makes adjustments accordingly:
– Low FPS: If FPS stays below 44 for about 5.7 seconds, the addon locks the settings to the lowest to ensure smooth performance.
– High FPS: If FPS remains above 44 for 60 seconds, the addon unlocks and starts to gradually increase the quality of the settings.
3. Dynamic Adjustment Logic: When the FPS is low and not locked, the addon lowers settings one by one, starting with View Distance, followed by Sunlight Rays, Distortion, and Show Additional Ally Effects. If the FPS is high and stable, it gradually restores these settings. There’s a cooldown period between adjustments to keep the experience smooth and prevent frequent changes.
4. Combat Mode Settings: During combat, View Distance is fixed to a level of 10, while Sunlight Rays, Distortion, and Show Additional Ally Effects continue to adjust dynamically based on FPS.
Why This Approach?
– View Distance: Has the most significant impact on performance and affects visual quality in certain scenes, so it’s prioritized for adjustment.
– Sunlight Rays and Distortion: Both have a moderate impact on performance, but Distortion is more commonly seen in-game, so Sunlight Rays gets adjusted first.
– Show Additional Ally Effects: While it impacts performance, seeing your allies’ skill effects is a great visual part of the game, so it’s adjusted last to preserve this experience.
Important Notes
– Restart Game Required: After enabling the addon first time, restart your game to ensure all settings are applied correctly.
– Gradual Restoration: If you notice the graphics locked at the lowest settings, give it some time. The addon will gradually restore quality as the FPS allows.
– Addon Compatibility: This addon minimizes conflicts with other addons, but using multiple performance-related addons may impact its effectiveness. It’s best to use only one graphics optimization addon at a time.
– ROG Ally Settings: For best results, set the power to 2530 watts. This addon is also compatible with the ROG Ally X.
Code references
Votan’s Advanced Settings
Votan’s Adaptive (Video-)Settings
Thanks Votan!!!
Enjoy!