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

Metal renderer #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Metal renderer #19

wants to merge 1 commit into from

Conversation

nicklockwood
Copy link
Owner

This PR demonstrates how to implement GPU-accelerated rendering using Metal. This allows the game to be rendered at full display resolution, and with much better performance.

This is a simple implementation, but there are opportunities for further optimizations, for example:

  • The map never changes, so the geometry for walls and floor could just be generated once.
  • Currently, quads are generated for every wall and floor/ceiling tile in the map, but we could use raycasting to determine the visible set of tiles each frame and only render those.

@nicklockwood nicklockwood changed the title Add Metal renderer Metal renderer Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant