Bug #1184

Console flickering when in system options

Added by Timothy 3 months ago. Updated 3 months ago.

Status:Fixed% Done:


Target version:2.77
OS: Arch:


When I’m browsing the system options, the top 4-5 lines of the console start flickering about and some lines will completely disappear. This is fixed once you exit this particular menu, but reappears once you enter it.

console_lines_missing.png - The particular lines that are missing are empty in the top. The first line is also missing some characters. (573 KB) Timothy, 21.01.2019 10:36


Associated revisions

Revision 5ec6ab89
Added by IR4T4 3 months ago

renderer: increase MAX_RENDER_COMMAND fixes #1184


#1 Updated by ryven 3 months ago

IIRC this is due to the limit of render commands, which is set to like 262144 commands, including both 2D and 3D draw commands, seems a big threshold to hit, but in case of menus and hud, each letter is a separate draw command, in case of menus it has to draw characters twice for the shadow effect, and so on. The console is, obviously, rendered last, and it renders lines bottom up, hence, once it hits the limit it just drops the render commands.

There are several solutions to this problem, one is to increase the MAX_RENDER_COMMANDS constant, the other is to simplify the menus, for instance by removing the text shadows. One could also write a text baking algo to reduce the number of render commands, but that would require to extend trap system for ui and cgame.

#2 Updated by Spyhawk 3 months ago

  • Target version set to 2.77
  • OS deleted (Windows)

#3 Updated by IR4T4 3 months ago

  • Category changed from Mod UI to Renderer
  • % Done changed from 0 to 100

#4 Updated by IR4T4 3 months ago

  • Status changed from New to Fixed

Also available in: Atom PDF