# engineGetRenderResolution (Client)

> Returns the size in pixels the scene is rendered at and the size of the final image in the window.

- **Platform**: MY Multiplayer (MYMP)
- **Kind**: Lua Function
- **Side**: Client
- **Category**: Graphics settings
- **URL**: https://wiki.mymp.gg/en/engineGetRenderResolution

## Syntax

```lua
int, int, int, int|false engineGetRenderResolution()
```

## Returns

The render width and height, then the output width and height, or `false` if the renderer is not running.

## Example

```lua
local renderWidth, renderHeight, outputWidth, outputHeight = engineGetRenderResolution()
outputDebugString(("%dx%d upscaled to %dx%d"):format(renderWidth, renderHeight, outputWidth, outputHeight))
```

## See also

- [engineGetRenderScale (Client)](https://wiki.mymp.gg/en/engineGetRenderScale.md): Returns the fraction of the window's resolution the 3D scene is rendered at.
- [engineSetRenderScale (Client)](https://wiki.mymp.gg/en/engineSetRenderScale.md): Sets the fraction of the window's resolution the 3D scene is rendered at. The image is then scaled up to the window's size.
