Results 1 to 10 of 10

Thread: ways to detect users screen resolution

  1. #1
    Chillie in here j.o.s.h.1408's Avatar
    Join Date
    Dec 2005
    Location
    a place called home
    Posts
    8,543
    Thanks
    757
    Thanked
    256 times in 193 posts
    • j.o.s.h.1408's system
      • Motherboard:
      • ASUS P6T Delux
      • CPU:
      • Intel core i7 920 @ 3ghz
      • Memory:
      • 3GB DDR RAM
      • Storage:
      • 1TB Samsung F1, 500GB Seagate baracuda + 320gb Seagate PATA +150GB WD PATA
      • Graphics card(s):
      • EVGA 480GTX SC edition
      • PSU:
      • Seasonic M12 600W Module PSU FTW
      • Case:
      • Lian Li PC-A7010B (the rolls royce of pc cases)
      • Operating System:
      • vista ultimate edition and windows xp
      • Monitor(s):
      • 22inch 2005FPW dell monitor
      • Internet:
      • 24mb BE There Broadband

    ways to detect users screen resolution

    Hi i noticed on sites such has http://www.casinotropez.com/mobile/ it doesnt ask the user what there make and model is on their phone. how would the server know which version of the game to send to the user that is compatible with there phone?

    i mean each phone is different ie differen screen resolutions so one generic version of a game/app wont work pn some but will in others?

    Thanks

  2. #2
    Comfortably Numb directhex's Avatar
    Join Date
    Jul 2003
    Location
    /dev/urandom
    Posts
    17,074
    Thanks
    228
    Thanked
    1,027 times in 678 posts
    • directhex's system
      • Motherboard:
      • Asus ROG Strix B550-I Gaming
      • CPU:
      • Ryzen 5900x
      • Memory:
      • 64GB G.Skill Trident Z RGB
      • Storage:
      • 2TB Seagate Firecuda 520
      • Graphics card(s):
      • EVGA GeForce RTX 3080 XC3 Ultra
      • PSU:
      • EVGA SuperNOVA 850W G3
      • Case:
      • NZXT H210i
      • Operating System:
      • Ubuntu 20.04, Windows 10
      • Monitor(s):
      • LG 34GN850
      • Internet:
      • FIOS

    Re: ways to detect users screen resolution

    Quote Originally Posted by j.o.s.h.1408 View Post
    Hi i noticed on sites such has http://www.casinotropez.com/mobile/ it doesnt ask the user what there make and model is on their phone. how would the server know which version of the game to send to the user that is compatible with there phone?

    i mean each phone is different ie differen screen resolutions so one generic version of a game/app wont work pn some but will in others?

    Thanks
    mobile games are usually J2ME (java), and run on most phones

    the games are usually written to deal with a wide variety of screen resolutions - much like PC games

  3. #3
    Senior Member chrestomanci's Avatar
    Join Date
    Sep 2004
    Location
    Reading
    Posts
    1,614
    Thanks
    94
    Thanked
    96 times in 80 posts
    • chrestomanci's system
      • Motherboard:
      • Asus AMD AM4 Ryzen PRIME B350M
      • CPU:
      • AMD Ryzen 1600 @ stock clocks
      • Memory:
      • 16Gb DDR4 2666MHz
      • Storage:
      • 250Gb Samsung 960 Evo M.2 + 3Tb Western Digital Red
      • Graphics card(s):
      • Basic AMD GPU (OSS linux drivers)
      • PSU:
      • Novatech 500W
      • Case:
      • Silverstone Sugo SG02
      • Operating System:
      • Linux - Latest Xubuntu
      • Monitor(s):
      • BenQ 24" LCD (Thanks: DDY)
      • Internet:
      • Zen FTTC

    Re: ways to detect users screen resolution

    You don't necessary need a different version of a game for different mobiles, just as you don't need different versions of PC games depending on your screen res, graphics card or CPU. The downloaded game can find out the capabilities of your system once it is running and display appropriate content, scaled to your screen size and colour depth.

    The reason many don't is that it is simpler and faster for games to use pre-rendered graphics that allready match your screen size than for the games to render on the fly, but for games that are not graphics and performace intensive, the small speed penalty to render the graphics at runtime is not significant.

  4. #4
    Chillie in here j.o.s.h.1408's Avatar
    Join Date
    Dec 2005
    Location
    a place called home
    Posts
    8,543
    Thanks
    757
    Thanked
    256 times in 193 posts
    • j.o.s.h.1408's system
      • Motherboard:
      • ASUS P6T Delux
      • CPU:
      • Intel core i7 920 @ 3ghz
      • Memory:
      • 3GB DDR RAM
      • Storage:
      • 1TB Samsung F1, 500GB Seagate baracuda + 320gb Seagate PATA +150GB WD PATA
      • Graphics card(s):
      • EVGA 480GTX SC edition
      • PSU:
      • Seasonic M12 600W Module PSU FTW
      • Case:
      • Lian Li PC-A7010B (the rolls royce of pc cases)
      • Operating System:
      • vista ultimate edition and windows xp
      • Monitor(s):
      • 22inch 2005FPW dell monitor
      • Internet:
      • 24mb BE There Broadband

    Re: ways to detect users screen resolution

    yea thats why i create images and objects that match a particular resolution. if had to resize or even compile my code with all the images for different resolutions the JAR file will be double of what it is normaly.

    J2ME is a pain i tell you because of the limitations of a phone! PC games are easy has PC in general can run a game of any size 1MB to 9GB for exampl..

  5. #5
    Agent of the System ikonia's Avatar
    Join Date
    May 2004
    Location
    South West UK (Bath)
    Posts
    3,736
    Thanks
    39
    Thanked
    75 times in 56 posts

    Re: ways to detect users screen resolution

    if thats what you do - and you knew the answer, why did you ask the question ?
    It is Inevitable.....


  6. #6
    Registered+
    Join Date
    Aug 2007
    Posts
    15
    Thanks
    0
    Thanked
    1 time in 1 post

    Re: ways to detect users screen resolution

    i just use the Image Size 75%

    if you use percentages will adjust to any screen ratio

  7. #7
    Chillie in here j.o.s.h.1408's Avatar
    Join Date
    Dec 2005
    Location
    a place called home
    Posts
    8,543
    Thanks
    757
    Thanked
    256 times in 193 posts
    • j.o.s.h.1408's system
      • Motherboard:
      • ASUS P6T Delux
      • CPU:
      • Intel core i7 920 @ 3ghz
      • Memory:
      • 3GB DDR RAM
      • Storage:
      • 1TB Samsung F1, 500GB Seagate baracuda + 320gb Seagate PATA +150GB WD PATA
      • Graphics card(s):
      • EVGA 480GTX SC edition
      • PSU:
      • Seasonic M12 600W Module PSU FTW
      • Case:
      • Lian Li PC-A7010B (the rolls royce of pc cases)
      • Operating System:
      • vista ultimate edition and windows xp
      • Monitor(s):
      • 22inch 2005FPW dell monitor
      • Internet:
      • 24mb BE There Broadband

    Re: ways to detect users screen resolution

    ikonia i was asking how to detect the screen resolution of the phone from that casino tropez link. i figured out how to do it anyway has when a user connects to our server using their web browser, a HEADER gets sent to the server that contains info and a link to an xml file that has the phones properties.

    By using this information, the server can automaticly choose the appropriate game version to send to the user

  8. #8
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: ways to detect users screen resolution

    Surely you could just scale the images down to the required size? I mean how much data are we talking about here?

    Lots of mobile phone browsers won't send any information of that kind.
    throw new ArgumentException (String, String, Exception)

  9. #9
    Chillie in here j.o.s.h.1408's Avatar
    Join Date
    Dec 2005
    Location
    a place called home
    Posts
    8,543
    Thanks
    757
    Thanked
    256 times in 193 posts
    • j.o.s.h.1408's system
      • Motherboard:
      • ASUS P6T Delux
      • CPU:
      • Intel core i7 920 @ 3ghz
      • Memory:
      • 3GB DDR RAM
      • Storage:
      • 1TB Samsung F1, 500GB Seagate baracuda + 320gb Seagate PATA +150GB WD PATA
      • Graphics card(s):
      • EVGA 480GTX SC edition
      • PSU:
      • Seasonic M12 600W Module PSU FTW
      • Case:
      • Lian Li PC-A7010B (the rolls royce of pc cases)
      • Operating System:
      • vista ultimate edition and windows xp
      • Monitor(s):
      • 22inch 2005FPW dell monitor
      • Internet:
      • 24mb BE There Broadband

    Re: ways to detect users screen resolution

    you will be amazed that alot of browsers send that information. you can scale down images in j2me. you cannot even rotate images freely. their are soo much limitations in j2me programing

  10. #10
    Seething Cauldron of Hatred TheAnimus's Avatar
    Join Date
    Aug 2005
    Posts
    17,164
    Thanks
    803
    Thanked
    2,152 times in 1,408 posts

    Re: ways to detect users screen resolution

    its not hard to rotate them using matrix logic and the sin table. Slow but thats what i ended up doing, this was quite some time back in java mind, i'd of expected things to of moved on.... but hey wtf, i just get too laugh from our C# n LINQ side of things now
    throw new ArgumentException (String, String, Exception)

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. DELL 2007WFP 20" widescreen user review
    By davidstone28 in forum Graphics Cards
    Replies: 8
    Last Post: 04-08-2006, 12:37 AM
  2. Laptop Screen to Desktop Screen?
    By Xaneden in forum Graphics Cards
    Replies: 2
    Last Post: 09-07-2006, 07:25 PM
  3. Max dual screen resolution supported by 7800GTX?
    By Shmee150 in forum Graphics Cards
    Replies: 5
    Last Post: 22-09-2005, 11:42 AM
  4. LG 17" CRT Flatron F700P Review
    By eldren in forum Reader Reviews
    Replies: 3
    Last Post: 22-10-2004, 06:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •