Skip to content

Performance investigation of blitting to 2d contextΒ #551

@DavidPeicho

Description

@DavidPeicho

Great library!

I don't really like to pollute issues, but I guess it's a good question to ask.

I see that you keep a single canvas with a WebGL context, that you blit per scene to canvas with 2d context.

Another way of doing it would be to have a fullscreen canvas in the DOM, on which each scene would blit at the good position using scissoring. My guess is that you didn't go this way because it breaks the rendering order of the elements in the DOM.

However, did you investigate on the performance impact this call has compared to blitting directly into a fullscreen WebGL context?

I am trying to setup a quick test to see the speed difference, but if you have already done that test it would be amazing if you could share the results.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions