Jump to content

Scoreboard CPU Problem


Talha Tuğsat

Recommended Posts

Posted (edited)

you need to use performanceBrowser to see which function is wrong.open your internet browser and try this :

http://serverip:port/performancebrowser/    >>>>> (Enter the your server ip and port number.)

 

this page will ask you for a username and password.you will write the account information you use on the server.

Everythink you need in this link : https://wiki.multitheftauto.com/wiki/Resource:Performancebrowser

Edited by ArcAngeL
Posted
15 minutes ago, ArcAngeL said:

you need to use performanceBrowser to see which function is wrong.open your internet browser and try this :

http://serverip:port/performancebrowser/    >>>>> (Enter the your server ip and port number.)

 

this page will ask you for a username and password.you will write the account information you use on the server.

Everythink you need in this link : https://wiki.multitheftauto.com/wiki/Resource:Performancebrowser

He can also use ipb resource which is available by default:

start ipb

ipb

In console.

Posted

I think the internet browser provides more detailed information.you can also see which resource other players are having trouble with.Use option and press 'd'  .

  • Moderators
Posted
1 minute ago, Talha Tuğsat said:

 

now i uploaded performancebrowser what should i do on this site scoreboard eats 40% cpu

Show me the code.

Posted (edited)

ıts original scoreboard
 

borderColor = borderColor or tocolor(0, 183, 235, 200)
            dxDrawRectangle( (sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2), scoreboardDimensions.width, scoreboardDimensions.height, cScoreboardBackground, drawOverGUI )
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) - 1, (sY/2)-(scoreboardDimensions.height/2) + 1, 1, scoreboardDimensions.height - 2, borderColor, postGUI)-- left
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width, (sY/2)-(scoreboardDimensions.height/2) + 1, 1, scoreboardDimensions.height - 2, borderColor, postGUI)-- right
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + 1, (sY/2)-(scoreboardDimensions.height/2) - 1, scoreboardDimensions.width - 2, 1, borderColor, postGUI)-- top
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + 1, (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height, scoreboardDimensions.width - 2, 1, borderColor, postGUI)-- bottom
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2), 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width - 1, (sY/2)-(scoreboardDimensions.height/2), 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height - 1, 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width - 1, (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height - 1, 1, 1, borderColor, postGUI)

 

Edited by Talha Tuğsat
  • Moderators
Posted (edited)
39 minutes ago, Talha Tuğsat said:

ıts original scoreboard
 


borderColor = borderColor or tocolor(0, 183, 235, 200)
            dxDrawRectangle( (sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2), scoreboardDimensions.width, scoreboardDimensions.height, cScoreboardBackground, drawOverGUI )
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) - 1, (sY/2)-(scoreboardDimensions.height/2) + 1, 1, scoreboardDimensions.height - 2, borderColor, postGUI)-- left
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width, (sY/2)-(scoreboardDimensions.height/2) + 1, 1, scoreboardDimensions.height - 2, borderColor, postGUI)-- right
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + 1, (sY/2)-(scoreboardDimensions.height/2) - 1, scoreboardDimensions.width - 2, 1, borderColor, postGUI)-- top
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + 1, (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height, scoreboardDimensions.width - 2, 1, borderColor, postGUI)-- bottom
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2), 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width - 1, (sY/2)-(scoreboardDimensions.height/2), 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2), (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height - 1, 1, 1, borderColor, postGUI)
        dxDrawRectangle((sX/2)-(scoreboardDimensions.width/2) + scoreboardDimensions.width - 1, (sY/2)-(scoreboardDimensions.height/2) + scoreboardDimensions.height - 1, 1, 1, borderColor, postGUI)

 

I don't think this part is cause it.

If you delete it, won't use many cpu?

- Any error in debugscript 3?

Edited by stPatrick

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