fix: optimize Blizzard preset performance for QHD monitors#4
fix: optimize Blizzard preset performance for QHD monitors#4
Conversation
- Increase `HeightMap` column width from 4.0 to 8.0, reducing the vertex count of the snow pile path by 50%. - Remove `SKShapeNode.glowWidth` usage in `BlizzardScene`, which caused severe frame drops on QHD monitors. - Replace the expensive glow effect with a performant wide stroke with low alpha. - Refactor `HeightMap` to use the `columnWidth` property instead of hardcoded values for better maintainability. Co-authored-by: gradigit <253359007+gradigit@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This change addresses performance issues with the Blizzard preset on QHD monitors. The primary culprits were the high-resolution
HeightMapcreating complex paths and the usage ofSKShapeNode.glowWidth, which is extremely expensive to render.By doubling the
columnWidth(reducing resolution) and replacing the glow effect with a simpler visual approximation, we significantly reduce the CPU/GPU load per frame, ensuring smooth 60fps performance even on large screens.PR created automatically by Jules for task 14162601888538682968 started by @gradigit