Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render sprites to an off-screen area to reduce artifacts #15

Open
luksamuk opened this issue Jan 12, 2025 · 1 comment
Open

Render sprites to an off-screen area to reduce artifacts #15

luksamuk opened this issue Jan 12, 2025 · 1 comment
Assignees
Labels
bug Something isn't working Engine Changes involving engine code (mostly C or MIPS assembly) Technical Debt This is a technical debt from another task

Comments

@luksamuk
Copy link
Owner

luksamuk commented Jan 12, 2025

This task is a technical debt for #7 and may depend on most VRAM mappings being used, so most VRAM-related features must be at least working until this change is made.

This task will prevent a bug that makes animation tiles way to apparent when Sonic's sprite is rotated. By rendering the sprite frame to an off-screen texture in VRAM, we can take this pre-rendered frame and rotate or flip it with no artifacts since it will work as a single quad.

Further, this will probably boost performance since we could use SPRT_8 for the off-screen rendering.

@luksamuk luksamuk self-assigned this Jan 12, 2025
@luksamuk luksamuk converted this from a draft issue Jan 12, 2025
@luksamuk luksamuk added bug Something isn't working Engine Changes involving engine code (mostly C or MIPS assembly) Technical Debt This is a technical debt from another task labels Jan 12, 2025
@luksamuk luksamuk changed the title [Tech Debt] Render sprites to an off-screen area to reduce artifacts Render sprites to an off-screen area to reduce artifacts Jan 12, 2025
@luksamuk
Copy link
Owner Author

This is still a wanted enhancement, but I think we might not need this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Engine Changes involving engine code (mostly C or MIPS assembly) Technical Debt This is a technical debt from another task
Projects
Status: Backlog
Development

No branches or pull requests

1 participant