|
From: Erik H. <er...@eh...> - 2006-01-25 22:21:28
|
Alex Romosan wrote: > i am currently running flightgear on an amd64 linux machine with an > nvidia geforce 6200 pci express card. i normally get about 60fps but > the moment the lights come on the display grinds to a halt (~1-2fps). > playing with the rendering options i discovered that if i turn > enhanced lighting on and off then the frame rate goes back to normal. > > so i looked at src/Main/renderer.cxx and after applying this patch: > - glEnable(GL_POINT_SMOOTH); > - glEnable(GL_LINE_SMOOTH); > +// glEnable(GL_POINT_SMOOTH); > +// glEnable(GL_LINE_SMOOTH); > flightgear runs at 60fps even when the lights are on (except if i > enable enhanced runway lighting). I really hat it when OpenGL driver manufacturers are lying about the capabilities of their drivers. The glHint(GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE) call tels the driver to only use point smoothing if the hardware supports it. Obviously NVidia doesn't to support that :-( What do we do now, disable this again because NVidia screws up? Erik -- http://www.ehtw.info (Dutch) Future of Enschede Airport Twente http://www.a1.nl/~ehofman/fgfs FlightGear Flight Simulator http://www.cafepress.com/fgfs_flightsim FlightGear Art |