suxinde2009 / isgl3d

Automatically exported from code.google.com/p/isgl3d
Other
0 stars 0 forks source link

During start up, screen blink with snapshot from previous app's screen #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compile your app or any tutorial or sample
2. Start your app
3. Screen will blink for a fraction of a second with snapshot from previous 
opened app's screen.

What is the expected output? 
Smooth start up

What do you see instead?
screen blink with snapshot from previous app's screen

What version of the product are you using? On what operating system?
iSGL3D 1.2.0 on iOS 4.2.1

Please provide any additional information below.
To resolve this issue temporarily I add this line:
    [self mainLoop];
at the end of the method:
- (void) onResizeFromLayer
of the class:
Isgl3dDirector

So the code looks like this:
- (void) onResizeFromLayer {
    _windowRect = [_glView bounds];
    _windowRectInPixels = CGRectMake(_windowRect.origin.x * _contentScaleFactor, 
        _windowRect.origin.y * _contentScaleFactor, 
        _windowRect.size.width * _contentScaleFactor, 
        _windowRect.size.height * _contentScaleFactor);

    // Update the viewport in the fps renderer
    [_fpsRenderer updateViewport];

    Isgl3dLog(Info, @"Isgl3dDirector : layer resized, window size in points = %ix%i and pixels = %ix%i", (int)_windowRect.size.width, (int)_windowRect.size.height,  (int)_windowRectInPixels.size.width, (int)_windowRectInPixels.size.height);

    [self mainLoop];
}

Original issue reported on code.google.com by r...@ptgdi.com on 23 Aug 2011 at 4:49

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sorry, correct version number of the iSGL3D I was using is version 1.2.1.
The work around does not work anymore on iSGL3d 1.2.2, the screen will blink to 
black for a moment.

Original comment by r...@ptgdi.com on 24 Aug 2011 at 7:03