Slowness in bases

Slowness in bases

Postby klauss » Thu Jan 03, 2013 11:56 pm

Hey... Guess what?

I found out why the upgrade interface, the nav computer and a few other places in VS are so terribly slow with some drivers.

Text background is rendered character-by-character! One batch per character! Holy fuck!
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Share On:

Share on Facebook Facebook Share on Twitter Twitter Share on Digg Digg

Re: Slowness in bases

Postby pheonixstorm » Fri Jan 04, 2013 6:13 pm

:shock: :lol: :oops:

That doesn't sound good.
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Tue Jan 26, 2010 2:03 am

Re: Slowness in bases

Postby klauss » Fri Jan 04, 2013 6:28 pm

Yeah, I think we must kick the replace-the-font-system project to high gear. It's a drag.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Slowness in bases

Postby pheonixstorm » Sat Jan 05, 2013 11:44 pm

Is the system using bitmapped fonts or some api call such as the GDI calls made by DirectX
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Tue Jan 26, 2010 2:03 am

Re: Slowness in bases

Postby klauss » Mon Jan 07, 2013 3:22 pm

glut, which does both bitmap fonts and "vector fonts" (with glut's funny definition of "vector fonts" as "lines").

It's awful. All the separate batches interspersed with raster ops (which is what glut uses internally, I just checked the code), is killing most drivers in performance metrics. I can confirm this with both nVidia and Intel, both Mesa and nVidia's binary driver.

In short, glut's text rendering is simply unusable, but even if replaced, the API would switch unruly between character texture and background, which would also kill the driver. This things needs a refactor.

I've been looking around, and we have two text rendering implementations (they look copypasted). One in hud.cpp, and one in gui/font.cpp. I'd keep the gui/font one, it looks tidier, and replace it with TTF-backed texture-cached fonts, rasterized with freetype.

Bad mojo is I lost my internet at home. I couldn't work at all during the weekend - I notice how useless I am without the internet to check documentation and stuff... I just couldn't do squat.
Oíd mortales, el grito sagrado...
Call me "Menes, lord of Cats"
Wing Commander Universe
User avatar
klauss
Elite
Elite
 
Posts: 7243
Topics: 55
Joined: Mon Apr 18, 2005 2:40 pm
Location: LS87, Buenos Aires, República Argentina

Re: Slowness in bases

Postby pheonixstorm » Tue Jan 08, 2013 9:23 pm

Thats why I like to have hardcopies of material I need. So long as its small enough to print out at home anyway...
Because of YOU Arbiter, MY kids? can't get enough gas. OR NIPPLE! How does that mkae you feeeel? ~ Halo
User avatar
pheonixstorm
Elite
Elite
 
Posts: 1567
Topics: 113
Joined: Tue Jan 26, 2010 2:03 am



Return to Coding

Who is online

Users browsing this forum: No registered users and 1 guest

cron