Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request resolves an issue where the texture cache did not correctly handle tilted viewports, leading to rendering inaccuracies. The changes introduce a more robust method for calculating viewport bounds, enhance the cache key to incorporate zoom and rotation, and refactor the underlying tile and region processing logic. These modifications ensure that the rendering pipeline accurately accounts for viewport transformations, providing a consistent visual experience across different orientations and zoom levels. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
39f9685 to
83c25fb
Compare
There was a problem hiding this comment.
Code Review
This pull request refactors the texture cache to support viewport rotation. Key changes include updating viewport_bounds_in_local_space in core-types to correctly calculate the bounding box for rotated transforms, extending the CacheKey in render_cache to include zoom and rotation for proper cache invalidation, and updating the tiling and compositing logic to handle these new transform components. The changes appear to correctly implement caching for rotated viewports. The suggestion to extract the magic number into a named constant remains valid to improve maintainability.
| ctx.try_pointer_position(), | ||
| ); | ||
|
|
||
| let physical_tile_size = (TILE_SIZE as f64 * device_scale).round() as u32; |
There was a problem hiding this comment.
I assume this means vello tiles are assumed to be the incorrect size when device scale is not 1? vello always renders in tiles of 256 in device pixels right? The preference Render Tile Resolution should be in device pixels right? scale seem to have influence on that currently?
No description provided.