#9 vid_samples cvar for controlling antialiasing

Unstable_(example)
closed
nobody
None
5
2014-08-12
2012-04-04
Eric Wasylishen
No

Hi, here is a little patch which adds a cvar "vid_samples" (same as Darkplaces) for controlling antialiasing. 0 or 1 is off, 2 is for 2x AA, 4 is for 4x AA, etc. It needs a "vid_restart" call after you change it to take effect.

Discussion

  •  
    Attachments
  • adds a setting in the video menu

     
    Attachments
  • Steven
    Steven
    2012-04-04

    Cool. But it seems to have bugs. :(

    1. delete id1/config
    2. quakespasm
    3. go to video menu, switch to 2x AA
    4. select apply
    5. press alt-tab to switch to fullscreen
    6. type quit
    7. ./quakespasm
    Screen is a little bonkers.

    Another time, i can't start quake - i get

    Command line: ./quakespasm -heapsize 128000 -bgsound -f -sndspeed 44100 +max_edicts 2000
    Found SDL version 1.2.14
    Quake 1.09 (c) id Software
    GLQuake 1.00 (c) id Software
    FitzQuake 0.85 (c) John Fitzgibbons
    FitzQuake SDL port (c) SleepwalkR, Baker
    QuakeSpasm 0.85.8 (c) Ozkan Sezer, Stevenaaus
    Host_Init
    Playing registered version.
    Console initialized.
    UDP Initialized
    Exe: 17:07:07 Apr 4 2012
    125.0 megabyte heap

    ERROR-OUT BEGIN

    QUAKE ERROR: Couldn't set video mode

     
  • Ozkan Sezer
    Ozkan Sezer
    2012-04-05

    The patch assumes that multisample window creation will succeed and doesn't re-try without multisampling in case of errors. This needs revising properly. See the implementation in uhexen2 (uhexen2.sf.net) for example.

     
  • Ozkan Sezer
    Ozkan Sezer
    2014-08-12

    Another version of this patch went in as of r962. Closing.

     
  • Ozkan Sezer
    Ozkan Sezer
    2014-08-12

    • status: open --> closed
    • Group: --> Unstable_(example)