Jump to content

[HELP] Tips for creating a good system.


Mature

Recommended Posts

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 by Hazardinho
Link to comment
  • Moderators
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 by IIYAMA
Link to comment

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...