Jump to content

CEF browser CPU load


gimmesomemo

Recommended Posts

Hey Everyone!!

I host a video channel on ustream and always wanted to stream my channel into my own MTA server.

To my delight, MTASA handles video sites very smoothly with great interaction! -

How cpu intensive is the CEF browser instance?

I want to make a house/business/bank type server with the video stream on every billboard, many many instances all over the map.

Is that theoretically possible without bogging everyone's machine down?

Any input is appreciated!! Thanks!

Link to comment

Yes it is possible you can apply what I provided below to your use.

local LS = createColRectangle (-800.81671, -2990.10657, 5100, 3330) 
local LV = createColRectangle (-810, 350, 5000, 3000) 
local SF = createColRectangle (-4000, -3000, 3190, 6000) 
function getPlayerCityName(element) 
if ( not isElement(element) ) then return end 
    if (isElementWithinColShape(element, LS)) then 
        result = "LS" 
    elseif (isElementWithinColShape(element, LV)) then 
        result = "LV" 
    elseif (isElementWithinColShape(element, SF)) then 
        result = "SF"        
    end 
    return result 
end 

But make sure to destroy the browser when the player leaves the rectangle.

Link to comment
I want to make a house/business/bank type server with the video stream on every billboard, many many instances all over the map.
If you're talking about many instances of CEF, then I assure you it will lag. However, if you mean many MTA billboard-objects, then you can use just one CEF browser and apply it to a texture without a specific target element (will be applied to all textures of that name, i.e. the billboard screen) (video will be played in sync on every billboard per client)
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...