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

x/mobile/app: faster reshape callback on darwin_amd64 #13794

Open
bronze1man opened this issue Dec 31, 2015 · 1 comment

Comments

@bronze1man
Copy link
Contributor

commented Dec 31, 2015

I write a simple 2d app with gomobile on mac.
I paint one image with fixed position and fixed size.
I found that when I resize the window quickly ,the image size on the screen is bigger or smaller proportionally to the screen size.
Sometimes,the image size remember the windows size in seconds ago.

After I comment out following code,the problem disappear:
image
src/golang.org/x/mobile/app/darwin_amd64.m:48

It looks like the reshape function is too slow.
May be we can cache same result from the system api.

gomobile version +0a85ca5 Fri Dec 25 00:41:33 2015 +0000 (android,ios); androidSDK=/usr/local/AndroidSdk/platforms/android-22
go version go1.5.2 darwin/amd64

@hyangah hyangah added this to the Unreleased milestone Jan 15, 2016

@hyangah hyangah changed the title x/mobile/app faster reshape callback on darwin_amd64 x/mobile/app: faster reshape callback on darwin_amd64 Jan 15, 2016

@hyangah

This comment has been minimized.

Copy link
Contributor

commented Jan 15, 2016

@gopherbot gopherbot added the mobile label Jul 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.