8000 removed blitting support by joneit · Pull Request #810 · fin-hypergrid/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

removed blitting support #810

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

Merged
merged 1 commit into from
Nov 25, 2019
Merged

Conversation

joneit
Copy link
Contributor
@joneit joneit commented Nov 24, 2019

This dubious feature which was off by default did not contribute anything to performance (on Chrome at least) and complicated the code.

Removed grid.properties.useBitBlit, grid.canvas.bc, grid.canvas.buffer; the grid.canvas.flushBuffer() method is now a no-op.

Not sure why the original author thought this would help. Normally used to composite smaller bitmpas into a larger bitmap so those portions don't have to redraw the entire view on every frame. This is not the case with Hypergrid where we are redrawing the entire grid on every frame. The other concept of prepping an off-stage view while the user is looking at the current frame is not an advantage if the entire frame can be drawn during blanking. There is no parallel processing in JS especially when GPU is bottleneck. Maybe I don't get it; maybe we can make this work for us. If so we can always put it back in.

@joneit joneit changed the base branch from master to develop November 24, 2019 05:39
@joneit joneit merged commit 91fb9f4 into fin-hypergrid:develop Nov 25, 2019
@joneit joneit deleted the remove-blitting branch November 25, 2019 16:05
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
0