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

only pause GLSurfaceView if activity is moved to the background, and … #37

Open
wants to merge 1 commit into
base: hc-v3-js
Choose a base branch
from

Conversation

abhinavroy-hc
Copy link

…not if it just loses focus

@@ -198,8 +197,7 @@ public void run() {
Cocos2dxGLSurfaceView.this.mCocos2dxRenderer.handleOnPause();
}
});
this.setRenderMode(RENDERMODE_WHEN_DIRTY);
// super.onPause();
super.onPause();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change should be tested well. Has had issues in the past. Will this whole change work if commented out ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

@abhinavroy-hc abhinavroy-hc Nov 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rendering mode change works on pause and on stop, commenting this out will never pause the rendering thread, not sure about if we should have this or not as onStop and this will be called on every video or interstitial

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you test the text rendering issues? then we can go live

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.

3 participants