[Kicad-developers] OpenGL fallback and video compat test

2017-03-23 Thread Chris Pavlina
Hi, I've been thinking about my intent to make KiCad fall back cleanly to Cairo when OpenGL isn't available. From what I can see, there are certain situations where trying to use OpenGL causes crashes that appear very hard to prevent. I really want to do something about this - they're hard to pre

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-23 Thread Jon Evans
That sounds like a reasonable approach if the lag time of running the test is low enough to not be a nuisance. Are these crashes you speak of ones that appear when the user first tries to switch to OpenGL, or later? One alternative approach (that might actually work well alongside yours) is a cra

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-23 Thread Chris Pavlina
On Thu, Mar 23, 2017 at 08:25:27PM -0400, Jon Evans wrote: > That sounds like a reasonable approach if the lag time of running the test > is low enough to not be a nuisance. Are these crashes you speak of ones > that appear when the user first tries to switch to OpenGL, or later? Ideally, I'd lik

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-23 Thread Jon Evans
On Thu, Mar 23, 2017 at 8:30 PM, Chris Pavlina wrote: > Remember, once a crash has actually > occurred in the main program you're already past the point of no return > for possible data loss. > > One alternative approach which can work quite well (Mentor Graphics does this) is to get a really goo

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-23 Thread Chris Pavlina
Yeah, good autosave helps. To be fair this is a bit offtopic - what I want really is a properly functioning way to check if OpenGL works, not a way to clean up if it doesn't. The fact that that involves containing an unavoidable crash in a child process is a bit of an implementation detail IMO ;)

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-23 Thread Simon Wells
would this work on the useless 945 chipset or whichever one it is that reports having hte right opengl features but does not? On 24 March 2017 at 13:39, Chris Pavlina wrote: > Yeah, good autosave helps. > > To be fair this is a bit offtopic - what I want really is a properly > functioning way to

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-23 Thread Chris Pavlina
Should. I'm not sure how exactly it behaves, so it may be necessary to add a specific check for them in the test binary. But I can't see why it wouldn't work. Does anyone here have this chipset to test? On Fri, Mar 24, 2017 at 01:55:25PM +1300, Simon Wells wrote: > would this work on the useless

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-24 Thread Maciej SumiƄski
On 03/24/2017 01:11 AM, Chris Pavlina wrote: > Hi, > > I've been thinking about my intent to make KiCad fall back cleanly to > Cairo when OpenGL isn't available. From what I can see, there are > certain situations where trying to use OpenGL causes crashes that appear > very hard to prevent. > > I

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-24 Thread Lorenzo Marcantonio
On Thu, Mar 23, 2017 at 08:11:31PM -0400, Chris Pavlina wrote: > Hi, > > I've been thinking about my intent to make KiCad fall back cleanly to > Cairo when OpenGL isn't available. From what I can see, there are Wouldn't be better to try to make a DC version of the GAL instead of cairo since it is

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-24 Thread Simon Wells
Cairo is much faster since the awesome devs at CERN (iirc) had another go at it. But thats currently only in nightlies and i believe has been decided to use that instead of trying to make a DC GAL. Have you tried recentish nightly cairo? On 24 March 2017 at 21:51, Lorenzo Marcantonio wrote: > On

Re: [Kicad-developers] OpenGL fallback and video compat test

2017-03-24 Thread Lorenzo Marcantonio
On Fri, Mar 24, 2017 at 10:12:44PM +1300, Simon Wells wrote: > Cairo is much faster since the awesome devs at CERN (iirc) had another > go at it. But thats currently only in nightlies and i believe has been > decided to use that instead of trying to make a DC GAL. Have you tried > recentish nightly