GLBasic forum

Main forum => GLBasic - en => Topic started by: Paul Smith on 2024-Aug-03

Title: A HTML5/WebGL resolution test
Post by: Paul Smith on 2024-Aug-03
https://paulsmith6175gmailcom.itch.io/bc

If anyone want to report what their touchscreen stops at on a mobile
Title: Re: A HTML5/WebGL resolution test
Post by: erico on 2024-Aug-03
346 x 626 on my ancient galaxy 5 phone.
Title: Re: A HTML5/WebGL resolution test
Post by: Qedo on 2024-Aug-04
351 746 (HUAWEI P30 PRO 2340x1080)
Title: Re: A HTML5/WebGL resolution test
Post by: spacefractal on 2024-Aug-06
GETSCREENSIZE diddent work. You cant uses GETDESKTOPSIZE just as the startup, which its may still report the internal resolution and its for change and reflect in second time, which values may change after LOOP.

So hence make sure your game can been scaled automatic when a user resize the window. When that part work, its should also works fine fullscreen on Android.

If the device has a internal scaling value, its the device that rescaling up. Here nothing im can do.

Also you cant load all stuff at once in one loop eiter as the game may crash due timeout by the browser.
Title: Re: A HTML5/WebGL resolution test
Post by: spacefractal on 2024-Aug-06
im have splitted it into own topic as im thinks its a nice new post without clutter too much.

Also you have not used the fullscreen featuer from itch.io which is required for us to test. Or its will been in a contain usesless resolution for mobiles as fullscreen was newer used (you only get the current canvas window resoluton).
Title: Re: A HTML5/WebGL resolution test
Post by: Paul Smith on 2024-Aug-11
Just reinstalled all my Steam stuff from Drive C to Drive D (free up my small 240g NVMe), I've installed HTML5Extras and know the HtmlPost script works as it shows in the console.
The problem I think I have is with HTML5Extra. If I use CheckCanvasSize() it returns with call to undefined function.

I know I could add it to my code and remove the DPRINT commands etc. But would love to know where i've gone wrong.
I dont think I got it working when it was on drive C and one of the reasons I reinstalled incase I corrupted something.

slightly off topic sometimes when I compile for Windows, the console shows LEAF duplicated ( or something similar ) but works. Any Ideas what this is?
Title: Re: A HTML5/WebGL resolution test
Post by: Qedo on 2024-Aug-11
about leaf see:
https://www.glbasic.com/forum/index.php?topic=11345.msg99825#msg99825
Title: Re: A HTML5/WebGL resolution test
Post by: Paul Smith on 2024-Aug-11
Thanks Qedo. I think now it maybe because I have stuff open its trying to alter when compiling.