Jump to content

browser low fps


Recommended Posts

Posted

alirght so I've setup a browser that attaches its self to a wall.

The problem is the YouTube video is very low FPS. The game FPS is fine.

yK8FXgq.png

function webBrowserRender() 
    if (getElementData(getLocalPlayer(), "cinema") == "yes") then 
        setBrowserVolume(webBrowser, 0.25) 
    else 
        setBrowserVolume(webBrowser, 0) 
    end 
  
local x, y = 110.7, 1024.15 
dxDrawMaterialLine3D(x, y, 23.25, x, y, 14.75, webBrowser, 18.2, tocolor(255, 255, 255, 255), x, y+1, 19) 
end 
  
function startRender() 
        loadBrowserURL(webBrowser, "http://projectreality.cf/astro.html") 
        addEventHandler("onClientPreRender", root, webBrowserRender) 
end 
addEventHandler("onClientBrowserCreated", webBrowser, startReder) 

  • Moderators
Posted

Try to render with lower resolution, if your pc can't handle it. This should be optional for the user experience.

Posted

I tried a web browser in 1920x1080 and it was really sluggish and slow. Changing it to 800x600 made it run nice and smoothly.

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