Console Text Scaling

Moderator: GZDoom Developers

User avatar
MG_Man
Posts: 1401
Joined: Sat Jul 28, 2007 1:24 pm
Contact:

Console Text Scaling

Post by MG_Man »

As resolutions get bigger, the console text gets smaller, and unlike the rest of the text in the game there is no scaling for it. Is it possible for there to be a cvar added or a behavior that will also scale the text in the console to high-res just like the HUD text?

I know that the console text ought to be smaller than the regular text still, maybe the "hi-res" output can target a smaller virtual screen size like 640x480 instead of 320x240.
Last edited by MG_Man on Wed May 14, 2014 11:49 am, edited 1 time in total.
User avatar
Enjay
 
 
Posts: 26985
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Console Text Scaling

Post by Enjay »

Yes, this would be nice. As well as screen resolutions getting bigger, my eyes are getting older. A bit of assistance would be appreciated. Image

;)
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Console Text Scaling

Post by Nash »

Seconding what Enjay said... my poor eyes can't read the console font very well. :(
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Console Text Scaling

Post by Graf Zahl »

Actually, the console needs more than just some scaling option. To be honest, it needs to be redone. Hopefully I find some time for it...
User avatar
Hellser
Global Moderator
Posts: 2776
Joined: Sun Jun 25, 2006 4:43 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Manjaro Linux
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Citadel Station

Re: Console Text Scaling

Post by Hellser »

Graf Zahl wrote:Actually, the console needs more than just some scaling option. To be honest, it needs to be redone. Hopefully I find some time for it...
I might be wrong here, but isn't the console code from Quake? If so, how much of it was changed? :|
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Console Text Scaling

Post by Graf Zahl »

I can't say. What I know is that the text buffer management is horrendously inefficient and can cause serious performance issues if a map is spamming messages.
User avatar
Ed the Bat
Posts: 3060
Joined: Thu May 03, 2012 1:18 pm
Graphics Processor: nVidia with Vulkan support
Location: Maryland, US
Contact:

Re: Console Text Scaling

Post by Ed the Bat »

Graf Zahl wrote:I can't say. What I know is that the text buffer management is horrendously inefficient and can cause serious performance issues if a map is spamming messages.
Is THAT what causes that? Wow. I've noticed a tremendously long load time on maps with missing textures (which get reported in the console). Never guessed it would be the console itself causing the slowdown.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Console Text Scaling

Post by Graf Zahl »

Yes, indeed. It's really the shitty console buffer that causes the slowdown, nothing else! The code is truly of the 'What were they thinking?' kind.

Not for much longer, though, I'm almost done with a replacement that formats text only when necessary. And it can retain all its history. On modern systems the memory it uses is hardly relevant.
User avatar
JPL
 
 
Posts: 523
Joined: Mon Apr 09, 2012 12:27 pm
Contact:

Re: Console Text Scaling

Post by JPL »

Did this end up happening? I don't see any options for it anywhere. Trying to do lots of console stuff on my HiDPI laptop and it's pretty rough.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Console Text Scaling

Post by Graf Zahl »

Nothing about the scaling - but I replaced the console buffer with a significantly faster version. It still slows somewhat down with excessive message spam but significantly less than before.
User avatar
ibm5155
Posts: 1268
Joined: Wed Jul 20, 2011 4:24 pm
Contact:

Re: Console Text Scaling

Post by ibm5155 »

Text rendering is freaking slow, idk how is it made but if it's not this way, I would sugest doing a sprite rendering instead of text.
I did a SDL console, and the text rendering method was so slow that it would be useless to make a console game, so I did a test with a spriteblock, and I rendered each letteras a image, and boom, I got 1000fps :D...
The only problem I would think is coloring the font, hmmm, if all the chars on zdoom console couldn't change their colors, so all chars would have the smae color, would this increase the performance?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49229
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Console Text Scaling

Post by Graf Zahl »

Guess what ZDoom's fonts are...
User avatar
Nash
 
 
Posts: 17487
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: Console Text Scaling

Post by Nash »

Sprite text (bitmap) sucks for scalability and high def displays.
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: Console Text Scaling

Post by wildweasel »

Yeah, if this happens it'd have to be exact multiples or else risk looking really ugly. (personally, I'd wind up using a nice 2x scale.)
User avatar
biospud
Posts: 206
Joined: Mon Oct 14, 2013 2:19 pm
Location: California, USA
Contact:

Re: Console Text Scaling

Post by biospud »

By the way, I recently needed a larger console font in GZ3Doom, so I hacked in a way to make the console text respect CON_SCALETEXT=1.

https://github.com/cmbruns/gz3doom/comm ... e7b35f20d4
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”