Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (603)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (650)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Windows 8.1 DPI Scaling workaround...  (Read 8737 times)
0 Members and 1 Guest are viewing this topic.
Offline GotoCofee

Senior Newbie

Medals: 2

« Posted 2013-10-21 21:28:18 »

For those who updated to Windows 8.1, you probably noticed the new DPI scaling functionnality. It does exactly what Apple did when they introduced retina display. If your application isn't supporting hi-res DPI scaling, then the OS scale up natively your application to match the DPI requested by the user.

The problem has been explained here for games :

Normally it shouldn't be a problem, but for some reason, it might break your game in some ways like it did for my game. I'm using Slick2D and Netbeans. When I launched or debuged from netbeans  I encountered the following problems :

  • Fullscreen's no longer functionnal, or very low FPS;
  • Windowed made the image blurry and FPS drop.
  • Netbeans interface was scaled down and blurry

Here's the workaround :
  • Go into your netbeans directory (mine is C:\Program Files\NetBeans 7.3.1\)
  • Go into the bin directory
  • Right click on netbeans.exe and select properties
  • Under compatibility tab, just check the option "Disable display scaling on high DPI settings". Do not select Windows 8 or 7 compatibility setting or netbeans will no longer run.
  • Repeat this process for netbeans64.exe
  • Restart netbeans

Now, when you launch your game from netbeans, it should be like before.

It should be a temporary fix until netbean's dev team fix the problem. I've not found a workaround for the jar execution of my game yet because I'm not distributing my game, and I didn't have time to investigate. If you have a clue, let us know!


Offline Jimmt
« League of Dukes »

JGO Kernel

Medals: 162
Projects: 5
Exp: 3 years

« Reply #1 - Posted 2013-10-22 00:34:41 »

I don't think it's just 8.1, I've been having these blurred problems with chrome since I first got windows 8 (fixed it using the same workaround as you).
Offline Cero
« Reply #2 - Posted 2013-10-22 03:02:18 »

here is my workaround: use Windows 7.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Opiop
« Reply #3 - Posted 2013-10-22 03:21:31 »

Windows 8 isn't that bad if you try it. I use it as my main OS and its actually faster than 7, and its easier to find files/start up programs etc...

Offline GotoCofee

Senior Newbie

Medals: 2

« Reply #4 - Posted 2013-10-22 03:39:08 »

Yeah, W8 is faster and uses less RAM. This is why I like this os better than W7 or XP.

I found that you can deactivate the DPI scaling completely for all applications in the Screen resolution dialog. Go to "Make text and other item larger or smaller" and check "Let me choose one scaling level..." and select 100% if you want no scaling at all.

I just wonder what my game will look like for people who will play it on W8.1 without disabling this feature ... I hope to find a solution so they won't notice anything. Maybe the game libraries will need to care of this new feature...
Offline SHC
« Reply #5 - Posted 2013-10-22 13:52:37 »

Another way is to show a warning message for users that are using windows 8.1 to manually disable dpi scaling.

Can you show a screenshot of the problem?

Offline GotoCofee

Senior Newbie

Medals: 2

« Reply #6 - Posted 2013-10-22 15:36:51 »

Another way is to show a warning message for users that are using windows 8.1 to manually disable dpi scaling.

Can you show a screenshot of the problem?

The warning isn't a good idea because the user may want to use this feature, it could bother him to have to deactivate it everytime he wants to play. In fact, this new feature is desirable for those who have a HD notebook screen and a normal secondary screen. I read that it is possible to tell to the OS that your application take care of the DPI scaling itself. I just wonder if Java can handle this thing at the moment.

Here's a screenshot of the problem, I compressed the JPEG to max quality. Just compare netbeans with notepad++ behind. Notepad++ is blurry while Netbeans is pixel accurate (Netbeans here has DPI scaling disabled).

DPI scaling problem :
Offline Cero
« Reply #7 - Posted 2013-10-23 00:19:26 »

Yeah, W8 is faster and uses less RAM.
Common myth.
Microsoft seemed to hit full stride with Windows 7, developing a fast and efficient operating system. Thankfully it seems Windows 8 continues to build on that pattern as we found it to be on par with and occasionally faster than 7.
Most of the other tests saw little to no difference between the two operating systems.
From a performance standpoint Windows 8 appears to offer a solid foundation from the get-go. Although there are only a few select areas where it is faster than Windows 7

No enough for me to suffer through metro and having no start button, for no reason :D

Offline Opiop
« Reply #8 - Posted 2013-10-23 00:26:03 »

No enough for me to suffer through metro and having no start button, for no reason Cheesy
Honestly, what do you hate about metro so much? The charms tool bar is super nice, it allows me to select what I'm searching for, so I can choose files or programs and sort out the stuff I don't want to see, it lets me quickly sleep my computer, search for text in supported programs and easily interact with the devices attached to my computer, all with a minimal amount of clicks or keyboard strokes. Sure, it may not be created with the keyboard and mouse in mind, but it works just as fine. As for metro, yeah it looks weird, but I use it as a quick launch screen to pin all my programs too. Then all I have to do is hit the windows key and open the program I want instead of sorting through a programs list like in windows 7.

Offline Cero
« Reply #9 - Posted 2013-10-23 01:55:26 »

Its made for touch, because Microsoft is too lazy and incompetent to develop two working polished OSs for 2 types of devices, like ios and osx.
If you want everything you will end up with nothing. As evident by the huge windows8/metro hate.
Especially removing the start button which has been burned into our brains for 15 years. Smart move

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Opiop
« Reply #10 - Posted 2013-10-23 01:59:48 »

Ok, I'll agree with you on some of that.

Yes, the two OSs definitely don't interface very well together. That's something that I notice everyday, but I've learned to live with it. There's nothing really wrong, it just doesn't look great.

As for the start button, honestly, if people can't learn how to operate without it, then that's honestly sad. The start screen in windows 8 is essentially the same, and the search function in the charms bar is, at least I think, more powerful than the previous search boxes.

Its all personal preference though. So I won't say you're wrong for thinking windows 8 is bad. But the start button isn't that big of a deal, its just hidden now.

Offline GotoCofee

Senior Newbie

Medals: 2

« Reply #11 - Posted 2013-10-23 03:31:33 »

@Cero : This thread isn't about W7 being better than W8 or Linux being better than MSDOS or whatever. Everyone has his arguments in favor of one or the other and most of the time it is based on preferences or specific needs. I hoped you to notice that it doesn't help to fix the problem stated above.
Offline Cero
« Reply #12 - Posted 2013-10-23 11:56:18 »

He asked... I'm sorry u_u

Offline Roquen
« Reply #13 - Posted 2013-10-23 12:21:45 »

No enough for me to suffer through metro and having no start button, for no reason Cheesy
I'd never looked at Win8 prior to a couple of weeks ago when I was setting up a machine for someone.  I stared at the new interface like "a deer caught in headlines" for a couple of minutes, then went on the web and five minutes later it looked just like Win7.  Let's not be crybabies about nothing.  I can't stand that new-ish ubuntu "thing"...big deal.  This kinda junk is targeting Joe Average, we're supposed to be a little more computer literate then them.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

Jesse (16 views)
2015-07-29 04:35:27

Riven (37 views)
2015-07-27 16:38:00

Riven (19 views)
2015-07-27 15:35:20

Riven (22 views)
2015-07-27 12:26:13

Riven (12 views)
2015-07-27 12:23:39

BurntPizza (32 views)
2015-07-25 00:14:37

BurntPizza (42 views)
2015-07-24 22:06:39

BurntPizza (24 views)
2015-07-24 06:06:53

NoxInc (31 views)
2015-07-22 22:16:53

NoxInc (20 views)
2015-07-22 22:13:39
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!