Mature Posted January 26, 2020 Share Posted January 26, 2020 (edited) Hello community, as some already know, I am developing a server that involves a lot of appearance and information, and I would like some code tips that I should avoid and some tips, because I don't have much experience and doubt, Dx starts to give a problem until Score? I'm looking to create a chat box in dx, but I'm not sure if it can affect performance ... But I appreciate your help. Edited January 26, 2020 by Hazardinho Link to comment
Moderators IIYAMA Posted January 26, 2020 Moderators Share Posted January 26, 2020 (edited) 25 minutes ago, Hazardinho said: Dx starts to give a problem until Score? RenderTargets can be used to create boxes, which can act as an mask so that only a little part can be visible and the rest gets cut-off. If you are going to work with renderTargets try to prevent doing re-drawing inside of the renderTarget. Only re-draw when you actually made changes. Sometimes using multiple renderTargets can also reduce re-drawing times. (For example if you have drawn 20x text which is already drawn inside of another renderTarget) Capturing the pixels inside of the renderTarget is a very CPU intensive process. For the rest there is not much you have to worry about. Edited January 26, 2020 by IIYAMA 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