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

Some perf improvement #4

Merged
merged 7 commits into from Oct 22, 2013
Merged

Some perf improvement #4

merged 7 commits into from Oct 22, 2013

Conversation

Ikipou
Copy link

@Ikipou Ikipou commented Dec 3, 2011

I hacked a couple of patches while looking into performance.

Everything might not be correct but I figured some of it might be worth sharing.

In the end, I think the implementation would have to be a lot more aggressive to achieve 60FPS on desktop and mobile devices.

WebKit support GPU acceleration when using WebKit transform with
3D transforms.

This patch use WebKit Transform when possible in order to improve
the performance when moving the tiles.
The branch if(!useBlankImage) is always taken since useBlankImage
was assigned just above.

Move useBlankImage, tileImgId and src to improve the span of those
variables.
If the final size is equal to the natural size, forcing the size
with CSS is useless.

Since the style is not shared here, that was just wasting memory
and adding complexity.
To avoid re-rendering the ThumbnailControl all the time, the
navigation rect is moved through CSS transform.
Loading images could stay in the well and polute the tree.
This patch ensure everything is cleared before recreating the
tiles.
dimin added a commit that referenced this pull request Oct 22, 2013
@dimin dimin merged commit 3dc81a1 into dimin:master Oct 22, 2013
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.

None yet

4 participants