Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Hz and Resolution

  1. #1
    Senior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    126

    Hz and Resolution

    Hi, how can I change the Hz (the rate of my screen) ?
    And could this demage my screen ?

    And how can I enable Tripple buffering for better Vsync ?

    And what does" HSync" ?

    Sorry for my English ^^


    ^^


  2. #2
    Senior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    126

    Re: Hz and Resolution

    ?

  3. #3
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Hz and Resolution

    Changing display refresh rate is not doable with OpenGL alone, it is OS-dependant.
    No it can not damage your screen. Well, maybe a 15 years old CRT monitor maybe be sensitive to bad sync, but nowadays they just switch to sleep mode.
    Triple buffering is not doable with OpenGL alone, it is OS-and-hardware-dependant.
    Hsync is horizontal sync. Very useful 15 years ago on 8bits and 16bits computers (amiga/atari) to have more than a dozen colors at a time : "just" change the palette during hsync, so each line have its own palette.
    Not sure what you could do with such a feature nowadays. And it is not available in OpenGL

  4. #4
    Senior Member Regular Contributor
    Join Date
    Apr 2009
    Posts
    171

    Re: Hz and Resolution

    yes i read some artical that thus CRT don't have safe guard with them
    so they can't stop the some kind of supply
    so either they get burned or get damaged
    and article is X11 windows system's 6.9 version docs
    and i do it for just get Mesa/drivers.
    haven't made a game [img]<<GRAEMLIN_URL>>/frown.gif[/img]

  5. #5
    Senior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    126

    Re: Hz and Resolution

    So it can't damage a flat-screen-monitor ?
    Do you know how to change the refresh rate with WinAPI ??
    And tripple buffering ? (isn't that like VSnyc done with OpenGL ?)


    ^^


  6. #6
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,574

    Re: Hz and Resolution

    Even most 10 years old CRTs will not be damaged.
    And LCD, by construction, can not be damaged due to too high refresh rate. Worse that will happen : no image on screen.
    I use GLFW for cross-platform refresh rate setting.

  7. #7
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,294

    Re: Hz and Resolution

    Modify and use this:
    Code :
    static void SwitchToFullscreen(int width,int height){
    	int nMode = 0; int Framerate=60;
    	DEVMODE devMode;
    	EnumDisplaySettings( NULL, ENUM_CURRENT_SETTINGS, &amp;g_oldDevMode );
     
    	while( EnumDisplaySettings( NULL, nMode++, &amp;devMode ) ){
    		if( devMode.dmPelsWidth  != width || devMode.dmPelsHeight != height) continue;
    		if( devMode.dmBitsPerPel != 32 )continue;
    		if( devMode.dmDisplayFrequency != g_oldDevMode.dmDisplayFrequency)continue;
    		if( ChangeDisplaySettings( &amp;devMode, CDS_TEST ) == DISP_CHANGE_SUCCESSFUL ){
    			InFullScreen=true;
    			break;
    		}
    	}
    	if(!InFullScreen){
    		MessageBoxA(hMain,"Monitor doesn't support this resolution","error",0);
    		InFullScreen=false;
    		return;
    	}
    	if(ChangeDisplaySettings( &amp;devMode, CDS_FULLSCREEN)!=DISP_CHANGE_SUCCESSFUL ){
    		InFullScreen=false;
    		MessageBoxA(hMain,"Cannot set required monitor mode","error",0);
    	}
    }

  8. #8
    Senior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    126

    Re: Hz and Resolution

    Thanks very much !!
    Where did you get this code ?

    And
    1) How can I check which monitor supports which Resolution + Reresh Rate (and which Resolution which refresh rate)

    2) Do LCD screens need VSync ? Or only old screens ?


    ^^


  9. #9
    Senior Member OpenGL Pro Ilian Dinev's Avatar
    Join Date
    Jan 2008
    Location
    Watford, UK
    Posts
    1,294

    Re: Hz and Resolution

    I composed it, looking at the FullScreen code in any of the NeHe tutorials. (where it nags "Run in Fullscreen?") .


    1) look in the code. Windows enumerates all possible combinations for you.

    2) Yes, LCDs and all type of screens need vsync. The data is being sent in serial fashion through a cable with several wires. If there was no need for Vsync, then that cable would have several million wires .

  10. #10
    Senior Member Regular Contributor
    Join Date
    Aug 2009
    Posts
    126

    Re: Hz and Resolution

    Why is my highest supported refresh rate only 75 ??

    And: Do other games also limit the FPS limit with VSync ?


    ^^


Page 1 of 2 12 LastLast

Similar Threads

  1. FX SID resolution
    By Adrian Lopez in forum COLLADA
    Replies: 1
    Last Post: 04-20-2009, 07:36 PM
  2. aa vs resolution
    By wintal in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 06-15-2003, 02:49 AM
  3. Frame buffer resolution with high resolution textures ?
    By totof in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-25-2003, 06:26 AM
  4. Resolution V size
    By me2 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-18-2002, 05:11 AM
  5. resolution
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-31-2002, 11:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean