Fabioxps Posted October 25, 2014 Posted October 25, 2014 it is possible to look at the screen of a specific player? how can I do this? local screenWidth,screenHeight = guiGetScreenSize() addEventHandler("onClientResourceStart", root, function() myScreenSource = dxCreateScreenSource ( screenWidth, screenHeight ) end ) function cleanmyscreen() if myScreenSource then dxUpdateScreenSource( myScreenSource ) dxDrawImage( screenWidth - screenWidth, screenHeight - screenHeight, 300, 300, myScreenSource, 0, 0, 0, tocolor (255, 255, 255, 255), true) end end addEventHandler( "onClientRender", root, cleanmyscreen) obs: using dxCreateScreenSource and dxDrawImage I do not want anything like setCameraTarget or setCameraMatrix
Fabioxps Posted October 25, 2014 Author Posted October 25, 2014 you can but its will have lag so much can you show me an example?
.:HyPeX:. Posted October 25, 2014 Posted October 25, 2014 you can but its will have lag so much can you show me an example? You would need to trigger onClientRender to send the image to server and then server to client. It would be a fullHD constant streaming player>server>player in a rate wich could not possible ever be achieved. You simply cant get 60FPS HD, not expect almost any player to have such a connection (Without mentioning the server cap) Just do some math. Each frame: Arround 1~1.5mb On 60 FPS - 60~90mb / sec On 32 players - 1920~2880mb / sec or 1.9~2.8GB Over 1min - 115200~172800mb or 115~172GB 1 hour - 6912~10368MB or 6912~10368 GB or 6.912~10.368 TB. It is literally insane the ammount of net traffic you're aiming.
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