Schneegans / Desktop-Cube

🧊 Indulge in nostalgia with useless 3D effects.
GNU General Public License v3.0
634 stars 22 forks source link

Add better texture filtering #153

Open bestouff opened 9 months ago

bestouff commented 9 months ago

The Motivation

When in "Overview" mode there are lots of aliasing artifacts, especially on terminal windows.

The Solution

Add anti-aliasing, at least as soon as leaving the "Desktop" mode.

Schneegans commented 9 months ago

Hi there! Thanks for the report. Once I find the time, I'll look into this. However, I am pretty sure that this is rather a texture-filtering issue than missing anti-aliasing. Super-sampling could help, but better texture filtering would be a much cheaper solution.

However, I am not sure if this can be changed easily. Mutter (or Clutter) seems to do some "intelligent" stuff here: If you look closely, the aliasing disappears at a certain point if a window is rotated out-of-view gradually. The windows which are facing the viewer seem to use nearest-neighbor filtering and if they are rotated a certain amount, they switch to bi- or trilinear filtering. Ideally, they should use anisotropic filtering, but I do not know if that is supported by Clutter.

bestouff commented 9 months ago

Ok thanks. I hesitated to report that, because on one side this is a purely cosmetic issue, but on the other side Desktop-Cube is also a hugely cosmetic extension :laughing:
All this to say thanks for looking at this but no pressure !

ichristophe56 commented 9 months ago

its ok merci bonne info~