Product Chat / Any differnce between the two screen width/height command?

Author
Message
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 27th Apr 2020 15:35
The commands are: GetDeviceWidth(Height) and GetDesktopWidth(Height)

On my computer, the values returned are equal. However, is there any time they may not be equal? And for what reason.
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th Apr 2020 16:11
in this from MAX? i would guess GetDeviceWidth(Height) is intended to work with WMR as different headsets will have different resolutions
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 27th Apr 2020 16:23 Edited at: 27th Apr 2020 16:24
Thanks for responding smallg. No, this is in Classic. I guess we have to start indicating in our description which one we are using. That's why it was confusing to me. I suppose it doesn't matter which one to use as there is only one device GG can use. That would be the desktop. However, maybe Lee was anticipating including WMR to GG-Classic -- which I don't think he will at this point. :LOL:
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
Belidos
3D Media Maker
9
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 27th Apr 2020 17:21
Quote: "I guess we have to start indicating in our description which one we are using. That's why it was confusing to me."


Which is why i keep suggesting we need a separate section in the forum for GameGuru Max discussions, it would make tings far less confusing. We don't need to segregate the community, but being able to keep posts separate within the same forum is a must.

Primary Desktop:
i7 7700,k NV1070 8GB, 16GB 3200mhz memory, 1x 2TB Hybrid, Win10.

Secondary Desktop:
i5 4760k, NV960 2GB, 16GB 2333mhz memory, 1x 2TB Hybrid, Win10.

Primary Laptop:
i5, NV1050 4GB, 8GB memory, 1x 1TB HDD, Win10.

Secondary Laptop:
i3, Intel 4000 series graphics, 6GB memory, 1x 500gb HDD, Win8.1.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 27th Apr 2020 17:58
Quote: "That would be the desktop. However, maybe Lee was anticipating including WMR to GG-Classic"

well VR did get added to GG (classic) before so perhaps it was for that
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
AmenMoses
GameGuru Master
8
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 27th Apr 2020 18:54
Ok so the difference is:

GetDesktopWidth/Height directly calls a Windows function to get the values.

GetDeviceWidth/Height returns the stored global value.

On initialisation GG calls the windows function to find out the window/screen size ('windowed' mode is currently not allowed) then sets the global values to these, so in effect they both give you the same values at present.

Been there, done that, got all the T-Shirts!
PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 28th Apr 2020 01:11
Quote: "we need a separate section in the forum for GameGuru Max discussions"

Yeah have to agree - really this is a no-brainier

I guess if it is not explicitly stated that the question is about MAX, then is should be assumed that the question IS about Classic
Big brother needs his own room

OldFlak....
aka Reliquia
i7-4790 @ 3.2GHz. 8GB Ram. NVidia GeForce GTX 1060 6GB. M1: Acer 31.5" @1920x1080 M2: Samsung 31.5" @ 1920 x 1080. M3: Acer 24" @ 1920 x 1080. OS: Windows 10 Pro 64-bit Insider.
PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 28th Apr 2020 15:34
Yeah seen a few threads now with questions relating to Max and Max was never specified

Do the above commands mean we will actually have window support in Max?
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 28th Apr 2020 15:58 Edited at: 28th Apr 2020 16:00
Quote: "we need a separate section in the forum for GameGuru Max discussions"

This was why this was posted for now anyway … keeping all these questions in one place
https://forum.game-guru.com/thread/221747#msg2629325

And Here
https://forum.game-guru.com/thread/221747#msg2629346
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
Flatlander
GameGuru Master
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 28th Apr 2020 16:56
I agree to either have a special area for max questions. @synchromesh, that was a great idea except they are now both locked and are buried deep in the mire of chat posts. :SMILE: I suppose we should all use the pinned thread by Lee regarding the Alpha release for questions regarding MAX. Thanks smallg for remeberizing us (that's my new word for the day) that a type of VR was placed in Classic some time ago. And a shout out to AmenMoses for getting inside the engine and explaining how it works.
Alienware Aurora R7 with SSD 256GB boot drive ( C: ) and a secondary drive ( D: ) that is 2TB
Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz 3.19 with Intel Turbo-burst
Installed RAM 16.0 GB
64-bit operating system, x64-based processor
Windows 10 Home
NVIDIA GeForce GTX 1070 with 8192 MB GDDR5 and 8095 MB shared system memory
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 28th Apr 2020 17:07 Edited at: 28th Apr 2020 17:11
Quote: "@synchromesh, that was a great idea except they are now both locked and are buried deep in the mire of chat posts"

Ye that's the prob , Initially they were hot topics and it did work but as time goes by they can crop up but in actual fact there is only one about the Max Gizmo that I really should really lock and re-direct . I will have to jump in as soon as next time

This was a classic question by the OP that wandered off slightly .
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 29th Apr 2020 04:02
Maybe a Max tag is required.
[GGMax] your thread name here.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 29th Apr 2020 11:00 Edited at: 29th Apr 2020 11:01
Quote: "Maybe a Max tag is required.
[GGMax] your thread name here. "

No that's the problem.
In order to help Lee so he doesn't waste time trawling through loads of threads its best to post in one place.
That way he can hit and run and get back to coding

Please Direct any issues or questions to Lees Thread
https://forum.game-guru.com/thread/221749
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
3com
10
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 29th Apr 2020 12:42
Yes, that is a good reason.
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics
cpu mark: 10396.6
2d graphics mark: 947.9
3d graphics mark: 8310.9
memory mark 2584.8
Disk mark: 1146.3
Passmark rating: 3662.4

PM

Login to post a reply

Server time is: 2024-11-23 16:57:19
Your offset time is: 2024-11-23 16:57:19