Join Helbreath
Would you like to react to this message? Create an account in a few clicks or log in to continue.


An essential info site for anyone learning the game. Great community and often very insightful posts.
 
HomeUseful information for Helbreath beginnersPlay, discover, and broadcast your Helbreath moments for free.Statistics overviewSearchMemberlistRulesRegisterLog in
 

 [CODE] FPS Improvement

Go down 
AuthorMessage
sleeq

sleeq

Posts : 21

[CODE] FPS Improvement Empty
PostSubject: [CODE] FPS Improvement   [CODE] FPS Improvement 999104/9/2020, 9:12 am

Creates DDraw in emulation mode (Forces HEL)

DXC_ddraw.cpp (Client)

Find in DXC_ddraw::bInit(HWND hWnd)
Code:
ddVal = DirectDrawCreateEx(NULL, (VOID**)&m_lpDD4, IID_IDirectDraw7, NULL);

Replace with this
Code:
ddVal = DirectDrawCreateEx((GUID*)DDCREATE_EMULATIONONLY, (VOID**)&m_lpDD4, IID_IDirectDraw7, NULL); // sleeq - creates ddraw in emulation mode (forces HEL)



This has proven to improve fps on Windows 7 and 10.
Back to top Go down
LifeX
‏‏‎ ‎‏‏‎ ‎
‏‏‎ ‎‏‏‎ ‎
LifeX

Posts : 220

[CODE] FPS Improvement Empty
PostSubject: Re: [CODE] FPS Improvement   [CODE] FPS Improvement 999104/9/2020, 1:33 pm

Thank you brother for sharing. Guess Centuu already implement on the sources.


LifeX
Back to top Go down
sleeq

sleeq

Posts : 21

[CODE] FPS Improvement Empty
PostSubject: Re: [CODE] FPS Improvement   [CODE] FPS Improvement 999104/9/2020, 10:48 pm

You're welcome mate. Stay tune for a few more fps tweaks I am working on. There is not much to do in ddraw.cpp.
Back to top Go down
 
[CODE] FPS Improvement
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Join Helbreath :: Open Source / Development Corner :: C++-
Jump to: