Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
21.84k stars 835 forks source link

Improper frame rendering #703

Open Digital-Sequence opened 2 years ago

Digital-Sequence commented 2 years ago

I've updated retro term, and saw this retro-term-issue

On previous version (1.1.1-2 in arch linux) everything is okay

Here's --verbose output

$ cool-retro-term --verbose
Using a variable-width font in the terminal.  This may cause performance degradation and display/alignment errors.
Both point size and pixel size set. Using pixel size.
Using a variable-width font in the terminal.  This may cause performance degradation and display/alignment errors.
qml: Loading settings: {
  "fps": 0,
  "x": 4,
  "y": 22,
  "width": 1912,
  "height": 1054,
  "windowScaling": 1,
  "showTerminalSize": true,
  "fontScaling": 1,
  "fontNames": [
    "IBM_3278",
    "COMMODORE_PET",
    "COMMODORE_PET"
  ],
  "showMenubar": false,
  "bloomQuality": 1,
  "burnInQuality": 0.5,
  "useCustomCommand": false,
  "customCommand": ""
}{
  "backgroundColor": "#000000",
  "fontColor": "#0ccc68",
  "flickering": 0,
  "horizontalSync": 0,
  "staticNoise": 0,
  "chromaColor": 0,
  "saturationColor": 0,
  "screenCurvature": 0.5198,
  "glowingLine": 0,
  "burnIn": 0.6,
  "bloom": 0.2969,
  "rasterization": 0,
  "jitter": 0,
  "rbgShift": 0,
  "brightness": 0.5,
  "contrast": 0.85,
  "ambientLight": 0.1,
  "windowOpacity": 1,
  "fontName": "IBM_3278",
  "fontWidth": 1,
  "margin": 0.5556,
  "blinkingCursor": false,
  "frameMargin": 0.3014
}
qml: Storing settings: {
  "fps": 0,
  "x": 963,
  "y": 22,
  "width": 953,
  "height": 1054,
  "windowScaling": 1,
  "showTerminalSize": true,
  "fontScaling": 1,
  "fontNames": [
    "IBM_3278",
    "COMMODORE_PET",
    "COMMODORE_PET"
  ],
  "showMenubar": false,
  "bloomQuality": 1,
  "burnInQuality": 0.5,
  "useCustomCommand": false,
  "customCommand": ""
}
qml: Storing profile: {
  "backgroundColor": "#000000",
  "fontColor": "#0ccc68",
  "flickering": 0,
  "horizontalSync": 0,
  "staticNoise": 0,
  "chromaColor": 0,
  "saturationColor": 0,
  "screenCurvature": 0.5198,
  "glowingLine": 0,
  "burnIn": 0.6,
  "bloom": 0.2969,
  "rasterization": 0,
  "jitter": 0,
  "rbgShift": 0,
  "brightness": 0.5,
  "contrast": 0.85,
  "ambientLight": 0.1,
  "windowOpacity": 1,
  "fontName": "IBM_3278",
  "fontWidth": 1,
  "margin": 0.5556,
  "blinkingCursor": false,
  "frameMargin": 0.3014
}
ia3crt commented 2 years ago

I have the same issue. Digging up found there was the same bug in 2019. It is related to Nvidia. I tested it to use the Igpu on my laptop instead of the nvidia drivers, and sure enough cool-retro-term rendered fine.

Digital-Sequence commented 2 years ago

I have the same issue. Digging up found there was the same bug in 2019. It is related to Nvidia. I tested it to use the Igpu on my laptop instead of the nvidia drivers, and sure enough cool-retro-term rendered fine.

You mean nouveau drivers?

KickingAnimal commented 2 years ago

Also having this issue on Arch with official nvidia drivers.

ia3crt commented 2 years ago

No, sorry for not specifying. So far Nouveau seems to render fine, same as amdgpu and intel. In my case, the problem seems exclusive to the privative Nvidia drivers... I am not 100% sure because amdgpu was tested on a different machine, and nouveau on a different distro (but same 5.16.11 kernel)

Digital-Sequence commented 2 years ago

No, sorry for not specifying. So far Nouveau seems to render fine, same as amdgpu and intel. In my case, the problem seems exclusive to the privative Nvidia drivers... I am not 100% sure because amdgpu was tested on a different machine, and nouveau on a different distro (but same 5.16.11 kernel)

I would install nouveau drivers, but it doesn't support power management. Also, if you saw neofetch output, you know that my GPU is discrete, and its name is gt1030

ia3crt commented 2 years ago

I would install nouveau drivers, but it doesn't support power management. Also, if you saw neofetch output, you know that my GPU is discrete, and its name is gt1030

If you have and Intel card, or Ryzen AMD (newer than gen I), I would recommend using hybrid graphics via bbswitch and optimus manager. Cool-Retro-Term and any other 2D app will launch with the integrated graphics, and GPU hungry games will launch with the Nvidia drivers. You can also force launch something with Nvidia with the "__NV_PRIME_RENDER_OFFLOAD=1" parameter.. The only caveat is that you won't have a spare GPU to do a passtrough for virtual machines.

njhanley commented 2 years ago

4abbe33 introduced this issue.

vananasun commented 1 year ago

bump, same issue while using 1.2.0 on Manjaro with NVIDIA proprietary drivers on an RTX 3060ti

0atman commented 1 year ago

Same problem here on Ubuntu 22.04 with propitiatory nvidia drivers.

Will be trying nouveau as a fix, thanks!

0atman commented 1 year ago

Nouveau did fix the frame, but very often locks up my computer when changing settings XD

WhiskeyTuesday commented 1 year ago

If you're okay with recompiling from source there's a workable temporary fix in one of the other issues: https://github.com/Swordfish90/cool-retro-term/issues/739#issuecomment-1347784249