Thursday, May 19, 2016

ChangeDisplaySettings

Dear game developers,
The next game that will call ChangeDisplaySettings / ChangeDisplaySettingsEx, will have its bits burned one by one.
This is not 1990 anymore.
Thanks.

Wednesday, May 18, 2016

CreateAdditionalSwapChain

Dear game developers,
If your game can use one screen with one picture, there is no reason to CreateAdditionalSwapChain.
Please use the default one.
Thanks.

Tuesday, May 17, 2016

Dual players, one screen

Dear game developers,
If you enable two players locally, there is no reason to render the screen twice in full resolution and then squash them into one.
It kills the GPU, and really have no benefit.
thank you.

Hey Windows - RegisterRawInputDevices

Hey Windows. When the program calls RegisterRawInputDevices, do you think that I don't see you opening a thread and polling constantly?

Sunday, May 15, 2016

Why to simply save my files?

A game probably was written to handle only one user, and then was ported to Steam that supports multiple users.

So what do they do? simple.

Let's copy the save files from Steam to a newly created temp directory, rename them in the process (to remove the profile marker) and use the original function to load it. simple!

Of course, when saving, the reverse process is done.

Should I mention that every time it opens a new directory? and that it fails to delete them afterwards?