Ability to detect graphics level

It would be very useful if we had a property of the player (Only accessible by LocalScript) called “GraphicsLevel”
In the project I’m working on, I’m thinking of creating a settings menu, in which players can customize different things that can speed performance.
However, players, often times, as I’ve realized from other games, the players never really see the settings menu, and complain about the killer lag anyways. At the same time, I want to make the place detailed by default.
It would be much easier if I had the settings tied to the graphics level.

game.Players.LocalPlayer.Changed:connect(function(property)
  if property == "GraphicsLevel" then
    if game.Players.LocalPlayer.GraphicsLevel < 8 then
      -- Hide all grass meshes
    else
      -- Show all grass meshes
    end
  end
end)

There becomes a problem here, though. If someone had their graphics set to automatic, they may end up seeing it switch back and forth between 8 and 9 (In this sample code).
My suggestion here would be to make another boolean property called “GraphicsAutomatic”

2 Likes

I’d totally use this :smiley:

Yes please.

I’m sure there must be some way already seeming as those pop up messages come when you change your grahpics level. They tell you your current level.

[quote] It would be very useful if we had a property of the player (Only accessible by LocalScript) called “GraphicsLevel”
In the project I’m working on, I’m thinking of creating a settings menu, in which players can customize different things that can speed performance.
However, players, often times, as I’ve realized from other games, the players never really see the settings menu, and complain about the killer lag anyways. At the same time, I want to make the place detailed by default.
It would be much easier if I had the settings tied to the graphics level.

game.Players.LocalPlayer.Changed:connect(function(property)
  if property == "GraphicsLevel" then
    if game.Players.LocalPlayer.GraphicsLevel < 8 then
      -- Hide all grass meshes
    else
      -- Show all grass meshes
    end
  end
end)

There becomes a problem here, though. If someone had their graphics set to automatic, they may end up seeing it switch back and forth between 8 and 9 (In this sample code).
My suggestion here would be to make another boolean property called “GraphicsAutomatic” [/quote]

Don’t hide all of the grass. Show them some of the grass based on their settings. I just use my own menu for this, I might start collecting analytics on what players do with it

Didn’t we get this just a couple of days ago?

Can’t find anything like that on ROBLOX API Differences