|
You last visited: Today at 10:24
Advertisement
[Fix] Freeze when moving window
Discussion on [Fix] Freeze when moving window within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.
08/25/2015, 21:46
|
#1
|
elite*gold: 0
Join Date: Jul 2013
Posts: 19
Received Thanks: 86
|
[Fix] Freeze when moving window
Hi !
As many have noticed when we move Neuz window the game freeze, ie game loop isn't running.
This can cause several problems with network, calculation of monsters positions, etc ...
Here is a short homemade tutorial to correct this 
File: _DirectX\d3dapp.h
After lines:
Code:
class CD3DApplication
{
Add:
Code:
private:
bool m_movingOrSizingWindow;
It's a simple variable to indicate when user is moving the window.
File: _DirectX\d3dapp.cpp
After lines:
Code:
CD3DApplication::CD3DApplication()
{
Add:
Code:
m_movingOrSizingWindow = false;
To initialize our variable.
Then in function LRESULT CD3DApplication::MsgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) replace lines:
Code:
case WM_ENTERSIZEMOVE:
// Halt frame movement while the app is sizing or moving
Pause( true );
break;
By:
Code:
case WM_ENTERSIZEMOVE:
// Halt frame movement while the app is sizing or moving
//Pause(true);
SetTimer(hWnd, 1, USER_TIMER_MINIMUM, NULL);
m_movingOrSizingWindow = true;
break;
case WM_TIMER:
if (wParam == 1 && m_bActive)
{
if (FAILED(Render3DEnvironment()))
SendMessage(m_hWnd, WM_CLOSE, 0, 0);
}
break;
And lines:
Code:
case WM_EXITSIZEMOVE:
Pause( false );
HandlePossibleSizeChange();
break;
By:
Code:
case WM_EXITSIZEMOVE:
//Pause(false);
//HandlePossibleSizeChange(); // We can't resize Neuz window
KillTimer(hWnd, 1);
m_movingOrSizingWindow = false;
break;
When user moves the window, the game loop isn't running but the function MsgProc is still called for WM_TIMER messages so we just have to use a timer to update the game.
To finish in function HRESULT CD3DApplication::Render3DEnvironment() replace line:
Code:
if( IsDrawTiming() )
By:
Code:
if (IsDrawTiming() || m_movingOrSizingWindow)
It seems IsDrawTiming doesn't work when the window is moving and I don't know why, so I added this and it works fine.
Edit: If you got an error with USER_TIMER_MINIMUM non identified, replace it by 0x0000000A 
There you go ! 
|
|
|
08/25/2015, 22:47
|
#2
|
elite*gold: 110
Join Date: Oct 2010
Posts: 306
Received Thanks: 58
|
...\Source\_DirectX\d3dapp.cpp(580): error C2065: 'USER_TIMER_MINIMUM' : undeclared identifier
Where i need to do this :O?
Ty for the Release  !
yours truly,
- Kevin
|
|
|
08/25/2015, 23:00
|
#3
|
elite*gold: 0
Join Date: Jul 2013
Posts: 19
Received Thanks: 86
|
I think it depends of your WinUser version... Try to replace it by 0x0000000A
|
|
|
08/25/2015, 23:47
|
#4
|
elite*gold: 110
Join Date: Oct 2010
Posts: 306
Received Thanks: 58
|
Thank you ^^ Worked.
yours truly,
- Kevin
|
|
|
08/26/2015, 00:36
|
#5
|
elite*gold: 0
Join Date: Aug 2009
Posts: 228
Received Thanks: 26
|
@Ahoru
Thanks! This fix is very important.
|
|
|
08/26/2015, 19:48
|
#6
|
elite*gold: 0
Join Date: Feb 2015
Posts: 87
Received Thanks: 20
|
Thanks Nice *-*
|
|
|
09/01/2015, 16:17
|
#7
|
elite*gold: 0
Join Date: Mar 2014
Posts: 243
Received Thanks: 11
|
what this fix can do?
|
|
|
09/01/2015, 17:33
|
#8
|
elite*gold: 7
Join Date: Sep 2012
Posts: 4,466
Received Thanks: 3,218
|
Quote:
Originally Posted by aoyamananami
what this fix can do?
|
When you move the neuz in window mode there can freez.. This was the fix for it.
|
|
|
09/02/2015, 10:05
|
#9
|
elite*gold: 0
Join Date: Mar 2014
Posts: 243
Received Thanks: 11
|
Quote:
Originally Posted by .ACE.
When you move the neuz in window mode there can freez.. This was the fix for it.
|
i see  .. this would be help . tnx
|
|
|
07/17/2021, 15:52
|
#10
|
elite*gold: 0
Join Date: Mar 2021
Posts: 11
Received Thanks: 1
|
there's no if( IsDrawTiming() ) in HRESULT CD3DApplication::Render3DEnvironment()? Where can i search for that for cpp. or h?
|
|
|
Similar Threads
|
JULY 19 2012 THIS FOR WINDOW 7 AND VISTA AND ALSO FOR WINDOW XP WALLHACK
07/27/2012 - Soldier Front Hacks, Bots, Cheats & Exploits - 11 Replies
DETECTED In window xp
|
After Server Window Freeze !
01/17/2011 - Shaiya Private Server - 8 Replies
Hey guys ive got an problem ! first , sorry for my bad english :/
First show the Movie ! After the Server set window ive got an freeze , only taskmanager can kill the game.exe !
YouTube - Shaiya P-Server Bug !
I downloadet this Client : http://shaiya.aeriagames.com/download without any Update via Update.exe !!! Its the EP3 Server files !
Anyone know an answer for the problem ?
|
Is there a way to stop the freeze when window isn't in focus?
10/25/2009 - Shaiya - 7 Replies
as the subject asks... Is there a way to stop the freeze when window isn't in focus?
|
All times are GMT +1. The time now is 10:25.
|
|