Some questions about full screen mode (#4752)

Hi there, :hugs:
I just noticed that when a game is built in the full screen mode, the game

  • just speeds up to about twice as fast when built without full screen
  • Softwares like on screen recording and screenshots capture Defold running in the background.
  • A thin line occurs near the top of the screen and distorts the screen around it, which I can’t capture due to issue #2 :frowning_face:

Any ideas why they are occurring and how to fix them ?

Are you using builtin fullscreen? As in the option in game.project?

defos.set_fullscreen(bool_value)
defos.toggle_fullscreen()
bool_value = defos.is_fullscreen()
1 Like

Yes I’m using the built in full screen mode.
Didn’t try Defos yet, but will give it a try :slight_smile:

Can you please share some more info about the system you are experiencing this issue on?

1 Like

Windows 8.1, running on HP Pavillion 15 notebook, i5 processor, and Nvidia Geforce 830M Graphic card

Edit @Pkeod I tried Defos full screen mode too. It works all fine (even the cursor shows up too :slight_smile: ) but the game is again much much slower than the built-in full screen mode

DefOS fullscreen is ā€œfullscreen borderless modeā€ (what gamers want most of the time, you’re unlikely to make something with Defold that would need exclusive mode) while builtin is ā€œexclusive fullscreen modeā€ but without options for resolution.

If the game is running faster than you want then you need to make sure you force enable vsync on the game, see what your graphics card is defaulted to for new games.

1 Like

Hmm. That explains most of the things. Thanks a lot @Pkeod
Yet though experimenting a lot in the past days, I haven’t been able to solve the speed issue.
Default fullscreen is still a lot faster than the Defos one (Vsync is enabled).
Here are two test builds with and without defos
Without Defos : https://drive.google.com/open?id=13av-Crh0gQyVJV6pQmZviGoXNf0zLWMg
With Defos : https://drive.google.com/open?id=1OZ_TKiF2rHksJeVAQRvdkyjVZfbYem22

Any ideas?

Which system have you tested this on? Windows? Which graphics card do you have?

Here it is. :wink:

The problem comes from the fact that Defold doesn’t use windowed fullscreen, like DefOS. I’ve added a task in our backlog to change behavior and use windowed fullscreen instead. I’m not sure when we’ll get to it and I would recommend that you use DefOS in the meantime.

1 Like

Hmm, I guess I will stick to DefOS then. :slight_smile:
Thanks a lot for your help.