Software rendering fallback #6073
Replies: 3 comments 17 replies
-
I don't think it's feasible to port all of our rendering infrastructure away from OpenGL to CPU rendering à la foot. Do software rasterization layers like llvmpipe help? |
Beta Was this translation helpful? Give feedback.
-
as another note the gpu requirements for both linux and macos are very light, not being able to create a gl context is very likely indicator of buggy gpu drivers my assumption is this relates to nvidia which ghostty can do nothing about (which would affect alot of apps?). If the solution above does not work you should install separate backup terminal if its that "critical" (what if any other bug makes your terminal unuseable?) there is also always the tty which you can access with ctrl+alt+fn1 through fn7 if its extremely critical (your graphical env is normally logged in on tty1 so use the others in that case) <----- id say this is your answer right here in the context of criticality on linux it requires opengl 3.3 which is ~15 years old macos metal which goes back even to some intel macs |
Beta Was this translation helpful? Give feedback.
-
I've definitely considered this. It's possible for sure. It's even something I've considered not just making a fallback but making it so that we use the CPU renderer for the first few frames while acquiring a GPU context and resources (since that takes a few frames). Kind of crazy, but cool. In the short term, I think having your system fallback to a software rasterizer as pluie suggested is the much more sane approach. When my GPU driver has been broken, falling back to something like llvmpipe is how I work around this. This helps many more programs work, not just Ghostty. 😄 |
Beta Was this translation helpful? Give feedback.
-
A terminal is what I consider a critical piece of software. When I update my drivers I sometimes experience that ghostty refuses to start due to not being able to open a GL context. This blocks me from working until I restart. Is it possibly to add a software-rendering fallback (with warnings of course) to smoothen the impact?
Beta Was this translation helpful? Give feedback.
All reactions