# What is the difference between getWidth and getBackBufferWidth in LibGDX?

In regards to gdx.graphics, what is the difference between using getWidth and getHeight, and using getBackBufferWidth and getBackBufferHeight?

I am learning LibGDX and Java. I programmed formerly in pygame. To my knowledge, getBackBuffer means the width and height of the actual window. Is that true?

• The backbuffer doesn't have to be the same size as the window (although it typically is). Disclaimer: I don't know LibGDX; this statement comes from my knowledge of Direct3D where this is the case, hence a comment and not an answer. – Maximus Minimus Jan 9 '17 at 16:10

The documentation explains it. getWidth and getHeight return the size of the client area (this is generally the usable portion of your game window). getBackBufferWidth and getBackBufferHeight return the size of the frame buffer, where actual drawing happens before it's presented to the window.