Bug Issue: Exit full-screen broken


Pages: 1

FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
October 19, 2018, 09:42:22 am
When exiting full screen the game window stays at fullscreen while the actual scene is resized. Also mouse coordinates are messed up making impossible to press the button again.
See attachments picture for game at full-screen and when toggling back.
Also attaching  a test game showing the issue.
Testing  on Mac using b10049 (same issue on 10014)
I think it's important to point out that in build b9974 enter/exit fullscreen works as supposed.


New attachment added by FMStudioGameDev - October 19, 2018, 09:43:08 am


New attachment added by FMStudioGameDev - October 19, 2018, 09:44:21 am


New attachment added by FMStudioGameDev - October 19, 2018, 09:44:40 am


rob1221

  • Master Stencyler
  • *
October 20, 2018, 12:32:58 pm
Could you try b10050 and see if there is any improvement?  I fixed a bug that caused multiple screen reloads when going into full screen, but I don't know if will have an effect on the issue you're seeing, which I was unable to reproduce on Windows.
  • Status changed from New to Need Info


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
October 21, 2018, 02:12:10 am
Thanks rob but unfortunately the issue persists.
Maybe it's useful to know that the problem happens only the first time you exit from fullscreen. If you manage to revert back next time you go fullscreen and back it reverts correctly.
Same thing if I choose to start the game in fullscreen, it starts with fullscreen window but small game (and block "full-screen enabled" returns false).
« Last Edit: October 21, 2018, 02:12:37 am by FMStudioGameDev »


rob1221

  • Master Stencyler
  • *
October 21, 2018, 08:00:02 am
I do get a delay when going into full screen, and if starting in full screen, the game just shows a black screen for a few seconds which shouldn't happen with a basic test game like this.  I don't get the rendering issue you have but the cause of that and the delay I'm seeing might be the same.

Checking hxScout confirms that either starting in full screen or going into full screen causes a significant delay attributed to OpenFL's rendering code.  This may be something that has to be fixed on their end first.


Ignore this since it seems to be an issue with my new PC and unrelated to recent changes.
  • Status changed from Need Info to New
« Last Edit: November 13, 2018, 11:05:56 am by rob1221 »


New attachment added by rob1221 - October 21, 2018, 08:00:28 am


ezbot

  • Subscriber - Stencyl Studio
  • *
October 24, 2018, 11:27:06 am
I'm experiencing the same issue described here on b10050; exiting fullscreen the first time results in a small game window with the rest of the screen black. It remains that way until I toggle fullscreen back on, then behaves normally. The issue does not exist on b9977.
« Last Edit: October 24, 2018, 11:27:24 am by ezbot »


harshhsrah

  • Subscriber - Stencyl Studio
  • *
October 30, 2018, 03:13:58 am
Added to this there is an issue with labels. Every toggle from full screen to window and vice versa cuts off a bit of the label text for the scene that is being displayed. Once you navigate to another scene and return back everything is back to normal.


rob1221

  • Master Stencyler
  • *
October 30, 2018, 07:34:19 am
Label issue is a confirmed OpenFL bug as reported here: http://community.stencyl.com/index.php?issue=1371.0


harshhsrah

  • Subscriber - Stencyl Studio
  • *
November 02, 2018, 03:05:42 am
Ok..will check out the solution of destry-reattaching the labels.
Will there be a solution for the fullscreen toggle issue?
I tried to crudely work around this by doing a force toggle at the start with a 0.2 second delay so that the first instance of the action is done thereby allowing normal toggle later.
It obviously looks odd but serves the purpose..(see attachment)


New attachment added by harshhsrah - November 02, 2018, 03:06:07 am


Justin

  • Master Stencyler
  • *
November 11, 2018, 06:17:58 am
I'm not seeing an issue here either, with the sample game attached.

Can you upload your game's logs? I'm especially interested in the parts about game scaling. It looks like this:

Code: [Select]
Universal.hx:91: initScreen
Universal.hx:138: Game Width: 480
Universal.hx:139: Game Height: 640
Universal.hx:140: Game Scale: 1
Universal.hx:141: Window Width: 1920
Universal.hx:142: Window Height: 1080
Universal.hx:143: FullScreen Width: 1920
Universal.hx:144: FullScreen Height: 1080
Universal.hx:145: Enabled Scales: [1x]
Universal.hx:146: Scale Mode: SCALE_TO_FIT_LETTERBOX
Universal.hx:248: Theoretical Scale: 1.5
Universal.hx:249: Asset Scale: 1x
Universal.hx:340: Logical Width: 480
Universal.hx:341: Logical Height: 640
Universal.hx:342: Scale X: 1.6875
Universal.hx:343: Scale Y: 1.6875
  • Status changed from New to Need Info
« Last Edit: November 11, 2018, 06:17:52 am by Justin »


Justin

  • Master Stencyler
  • *
December 18, 2018, 04:46:09 am
Bump.


FMStudioGameDev

  • Subscriber - Stencyl Studio
  • *
December 18, 2018, 11:48:00 pm
The issue still exists for me in build 10161. Testing on Mac (mac target platform).
Here are the requested logs:
Code: [Select]
2018-12-19 08:44:06,559 INFO  [Thread-45] stencyl.sw.app.gamecontroller.GameInterfaceServer: Sending status to game: CONNECTED
2018-12-19 08:44:06,559 INFO  [Thread-45] stencyl.sw.app.gamecontroller.GameInterfaceServer: Sending status to game: ASSETS_READY
2018-12-19 08:44:06,608 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] ToolsetInterface.hx:223: GCI connected. Waiting for updated assets.
2018-12-19 08:44:06,761 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:91: initScreen
2018-12-19 08:44:06,763 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:138: Game Width: 480
2018-12-19 08:44:06,763 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:139: Game Height: 640
2018-12-19 08:44:06,763 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:140: Game Scale: 1
2018-12-19 08:44:06,763 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:141: Window Width: 480
2018-12-19 08:44:06,763 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:142: Window Height: 640
2018-12-19 08:44:06,764 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:143: FullScreen Width: 1440
2018-12-19 08:44:06,764 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:144: FullScreen Height: 900
2018-12-19 08:44:06,764 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:145: Enabled Scales: [1x]
2018-12-19 08:44:06,764 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:146: Scale Mode: SCALE_TO_FIT_LETTERBOX
2018-12-19 08:44:06,765 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:250: Theoretical Scale: 1
2018-12-19 08:44:06,765 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:251: Asset Scale: 1x
2018-12-19 08:44:06,765 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:353: Logical Width: 480
2018-12-19 08:44:06,765 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:354: Logical Height: 640
2018-12-19 08:44:06,765 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:355: Scale X: 1
2018-12-19 08:44:06,765 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:356: Scale Y: 1
2018-12-19 08:44:06,765 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] [lime.utils.Preloader] Preloading asset library: default
2018-12-19 08:44:06,865 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] [lime.utils.Preloader] Loaded asset library: default [1/1]
2018-12-19 08:44:06,865 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] [lime.utils.Preloader] Preload complete
2018-12-19 08:44:06,865 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] GLUtil.hx:34: GL value of MAX_TEXTURE_SIZE: 16384
2018-12-19 08:44:06,868 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Data.hx:304: Load Atlas: 2
2018-12-19 08:44:06,868 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Data.hx:304: Load Atlas: 0
2018-12-19 08:44:06,868 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Data.hx:304: Load Atlas: 3
2018-12-19 08:44:06,868 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Data.hx:304: Load Atlas: 1
2018-12-19 08:44:25,654 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Engine.hx:563: Set fullScreen: true
2018-12-19 08:44:25,654 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:91: initScreen
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:138: Game Width: 480
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:139: Game Height: 640
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:140: Game Scale: 1
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:141: Window Width: 1440
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:142: Window Height: 900
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:143: FullScreen Width: 1440
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:144: FullScreen Height: 900
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:145: Enabled Scales: [1x]
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:146: Scale Mode: SCALE_TO_FIT_LETTERBOX
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:250: Theoretical Scale: 1
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:251: Asset Scale: 1x
2018-12-19 08:44:26,267 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:353: Logical Width: 480
2018-12-19 08:44:26,268 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:354: Logical Height: 640
2018-12-19 08:44:26,268 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:355: Scale X: 1.40625
2018-12-19 08:44:26,268 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:356: Scale Y: 1.40625
2018-12-19 08:44:27,321 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Engine.hx:563: Set fullScreen: false
2018-12-19 08:44:27,321 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:91: initScreen
2018-12-19 08:44:27,322 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:138: Game Width: 480
2018-12-19 08:44:27,322 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:139: Game Height: 640
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:140: Game Scale: 1
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:141: Window Width: 480
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:142: Window Height: 640
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:143: FullScreen Width: 1440
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:144: FullScreen Height: 900
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:145: Enabled Scales: [1x]
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:146: Scale Mode: SCALE_TO_FIT_LETTERBOX
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:250: Theoretical Scale: 1
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:251: Asset Scale: 1x
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:353: Logical Width: 480
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:354: Logical Height: 640
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:355: Scale X: 1
2018-12-19 08:44:27,323 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:356: Scale Y: 1
2018-12-19 08:44:28,221 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Engine.hx:563: Set fullScreen: true
2018-12-19 08:44:28,222 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:91: initScreen
2018-12-19 08:44:28,222 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:138: Game Width: 480
2018-12-19 08:44:28,222 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:139: Game Height: 640
2018-12-19 08:44:28,222 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:140: Game Scale: 1
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:141: Window Width: 1440
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:142: Window Height: 900
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:143: FullScreen Width: 1440
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:144: FullScreen Height: 900
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:145: Enabled Scales: [1x]
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:146: Scale Mode: SCALE_TO_FIT_LETTERBOX
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:250: Theoretical Scale: 1
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:251: Asset Scale: 1x
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:353: Logical Width: 480
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:354: Logical Height: 640
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:355: Scale X: 1.40625
2018-12-19 08:44:28,223 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:356: Scale Y: 1.40625
2018-12-19 08:44:29,004 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Engine.hx:563: Set fullScreen: false
2018-12-19 08:44:29,006 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:91: initScreen
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:138: Game Width: 480
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:139: Game Height: 640
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:140: Game Scale: 1
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:141: Window Width: 480
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:142: Window Height: 640
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:143: FullScreen Width: 1440
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:144: FullScreen Height: 900
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:145: Enabled Scales: [1x]
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:146: Scale Mode: SCALE_TO_FIT_LETTERBOX
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:250: Theoretical Scale: 1
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:251: Asset Scale: 1x
2018-12-19 08:44:29,563 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:353: Logical Width: 480
2018-12-19 08:44:29,564 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:354: Logical Height: 640
2018-12-19 08:44:29,564 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:355: Scale X: 1
2018-12-19 08:44:29,564 INFO  [Thread-44] stencyl.sw.util.StreamGobbler: [My Game] Universal.hx:356: Scale Y: 1


Justin

  • Master Stencyler
  • *
December 19, 2018, 02:26:11 am
Ah, perhaps that's what's making the difference. I must not have seen your mention of Mac in the first post. I'll test there and see.


Justin

  • Master Stencyler
  • *
December 19, 2018, 09:10:01 am
Yep, turned out to be Mac only. Fixed in b10167.
  • Issue Assigned from (none) to Justin
  • Status changed from Need Info to Resolved


Pages: 1

Details

  • Reported
    October 19, 2018, 09:42:22 am
  • Updated
    December 19, 2018, 09:10:01 am

  • View Status
    Public
  • Type
    Bug
  • Status
    Resolved
  • Priority
    Normal
  • Version
    Stencyl 3.5, 3.5.0 beta 1
  • Fixed in
    (none)
  • Assigned to
    Justin
  • Category
    (none)

Tags


Attachments


* Fullscreen.png (111.42 kB, 2880x1800 - viewed 18 times.)

* exit from fullscreen.png (105.06 kB, 2880x1800 - viewed 19 times.)
* testGAme.stencyl (733.39 kB - downloaded 13 times.)

* hxScout.png (47.41 kB, 1557x407 - viewed 22 times.)

* Screen Shot 2018-11-02 at 3.27.33 PM.png (15.94 kB, 273x207 - viewed 15 times.)