Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Windows / SetWindowSize and performance issue

Author
Message
gibs
2
Years of Service
User Offline
Joined: 26th Feb 2016
Location:
Posted: 1st Jun 2018 14:37
Hello,

I have some performance issues with my laptop, let's says a recent atom laptop.

To understand where the issue is coming from I took the benchmark the example and noticed that it was running fine with the 500 sprites.

But, if I set the Window Size (SetWindowSize let's says 640/480 fullscreen), it runs at slowly at 30FPS.
I have removed the particles and only display 2 sprites and it runs at 45Fps.

The documentation says:

SetWindowSize
Description:
This sets the window size for platforms that support it, such as Windows and Mac. This will not affect mobile devices. In fullscreen mode the width and height will be ignored and the desktop resolution will be used.

So it means that I can't animate 2 sprites in 1920*1080 fullscreen at 60fps ?
When I remove the SetWindowSize instruction but let the virtual resolution all runs nicely with no performance issues.

What's wrong ?
Thanks.

Santman
7
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 11th Jul 2018 19:56
I don't think these are effective commands either. From what I understand, which may be wrong, I can't set an app to run at 1080 HD full screen on my 4k monitor......full screen always runs at 4k as that's my desktop.

The way I think it should work is that the virtual resolution should be the RENDER size, and the screen/window size should be the display.
PSY
Valued Member
2
Years of Service
User Offline
Joined: 3rd Jul 2016
Location: Laniakea Supercluster
Posted: 26th Jul 2018 21:27
@gibs

can you provide a code example with media files?


PSY LABS Games
Coders don't die, they just gosub without return

Login to post a reply

Server time is: 2018-12-10 05:10:05
Your offset time is: 2018-12-10 05:10:05