> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/app/getresolution.md).

# getResolution

```lua
return function()
    local app = getApp();
    local res = app.getResolution();
    
    log('current window resolution is ' .. res.x .. ', ' .. res.y);
end
```

{% hint style="warning" %}
The resolution refers to the window size, not game coordinates! look at [convertPercentToPosition](/lua-scripting-api/api-reference-and-tips/classes/app/convertpercenttoposition.md) for in-game coordinate system.
{% endhint %}
