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

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
ShubhroK
Prole
Posts: 2
Joined: Mon Nov 29, 2021 7:43 am

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

Post 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?
Attachments
Capture.PNG
Capture.PNG (45.76 KiB) Viewed 3284 times
User avatar
GVovkiv
Party member
Posts: 668
Joined: Fri Jan 15, 2021 7:29 am

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

Post by GVovkiv »

It may be caused by drivers for gpu in windows, since it may round values differently
User avatar
UnixRoot
Citizen
Posts: 80
Joined: Mon Nov 08, 2021 8:10 am

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

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 17 guests