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

ske: One draw call renderer. #135

Open
marekmaskarinec opened this issue Jan 14, 2024 · 2 comments
Open

ske: One draw call renderer. #135

marekmaskarinec opened this issue Jan 14, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request new-renderer

Comments

@marekmaskarinec
Copy link
Member

Original issue:

~mrms/tophat#41

Initial message:

The one draw call renderer should stop web version and desktop versions from lagging/overloading the computer, it should especially optimize the main problem tophat has, which is switching textures and scissor rects. Scissor rects will be implemented via shaders now, which reduces complexity of switching between draw calls. I might need some help. One important part of this technique is to pack images into one atlas image since you can't attach much more than a few textures per draw call.

@marekmaskarinec
Copy link
Member Author

If I understand correctly, you want to implement scissor rects inside shaders now. Do we pass them as attributes (a lot of data, but few draw calls), or as uniforms (less data, more draw calls).

@skejeton
Copy link
Member

skejeton commented Jul 11, 2024

Probably attributes, we can have only simple clipping shapes like quads. Anything more complex we can think about later, but we have more lee way since the pipeline is 2D not 3D.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new-renderer
Projects
None yet
Development

No branches or pull requests

2 participants