Page 1 of 1

Game is not pixel sharp when run on windows but, it is on linux.

Posted: Mon Nov 29, 2021 7:50 am
by ShubhroK
I am a linux user so i was making the game in linux. While developing the game when i compiled the game, it was sharp. For sharping i have used this code

Code: Select all

love.graphics.setDefaultFilter('nearest', 'nearest')
.

After completing the game i have made it executable for windows in both 32 and 64 bit. On running the .exe file in windows, it is not as sharp as it is showing in linux. The game works fine but, this small detail is bugging my mind. Any suggessions?

Re: Game is not pixel sharp when run on windows but, it is on linux.

Posted: Mon Nov 29, 2021 1:22 pm
by GVovkiv
It may be caused by drivers for gpu in windows, since it may round values differently

Re: Game is not pixel sharp when run on windows but, it is on linux.

Posted: Mon Nov 29, 2021 1:41 pm
by UnixRoot
Could be DPI scaling. My monitor runs at 150% scaling, so ever app or game that doesn't support DPI scaling is rendered blurry at 150% size.