This will give you the value you specified in game.project
This will give you the real size of the window. It can be different from the logical size set in display.width and display.height
They are simple function calls and which one you use will have no measurable impact in performance unless you call it tens of thousands of times in a loop every frame.