Jump to content

[Help]: Custom chat


Skraund

Recommended Posts

Posted (edited)

Hello, I hid the standard chat and created a new chat. All works well, except for one, when drawing a single line, I draw the text 5 times, 1 time the color text, and 4 is the black text that is shifted along the OX and OY axes to make a stroke. 
But when 20 lines are drawn, the FPS is reduced by 20 units. Someone knows how to draw text with a stroke, but at the same time, the FPS does not fall much?


P. S. I tried to draw the text through the CEF, the FPS did not fall, but there were strong delays while drawing the text, can someone know how to draw the text through the shaders?

Sorry for my English.

Edited by Skraund
Posted

You could try drawing 5 texts to a render target, only when necessary, to avoid drawing them on every frame; or perhaps draw only 1 text to a render target and use a shader for outline but I have no idea how to write such a shader.

Posted (edited)

Is it possible to draw 100 lines of text at the same time as the FPS is reduced by 4-5 units, and not by 20 units?

Edited by Skraund

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...