Skraund Posted August 3, 2018 Share Posted August 3, 2018 (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 August 3, 2018 by Skraund Link to comment
Addlibs Posted August 3, 2018 Share Posted August 3, 2018 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. Link to comment
Skraund Posted August 4, 2018 Author Share Posted August 4, 2018 (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 August 4, 2018 by Skraund Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now