[HELP] Neuz CPU Ussage and memory

03/02/2021 05:50 Wezzy_Dev#1
I need some help how to optimize and make it low CPU usage and memory usage of neuz.exe need some help here Thanks in advance.

[Only registered and activated users can see links. Click Here To Register...]
03/02/2021 19:05 Wanetrain#2
Why do you want to do this?
03/05/2021 11:08 Wezzy_Dev#3
Quote:
Originally Posted by Wanetrain View Post
Why do you want to do this?
to make it low.
03/05/2021 17:42 Wanetrain#4
Quote:
Originally Posted by Wezzy_Dev View Post
to make it low.
That is the question... WHY you wanna do this?

What do you hope from it? "Yea, my Neuz is using 100MB Ram instead of 500", wtf is this?
03/06/2021 14:55 Wezzy_Dev#5
not not the memory is the huge problem the problem is the CPU Ussage is too high! so Player having a core to duo or low spect computer cpu can't handle the usage .
03/07/2021 19:25 Groxy101#6
Maybe add some "hide" features in options (players, sfx, pets, etc.)

It really depends on what your players are doing.

My client will be between 10-20% CPU when standing in Flarine (alone).

But if you have a lot more players, the client needs to render all of that..
03/08/2021 11:19 TrøublêMakêr#7
disable the npc shouts. Take it enough Cpu ussage.
03/08/2021 17:34 Wanetrain#8
Quote:
Originally Posted by TrøublêMakêr View Post
disable the npc shouts. Take it enough Cpu ussage.
Not realy.

Well, rework the whole render. Only thing you can do for a good decrease on CPU usage.

Reason: Calculation of the FPS is handled by the CPU.

Possible things you can do:

- Working with elapsed time (in every render function)(render in flyff is just dumpsterfire, don't do it if you don't know what todo (NO C&P!!))

or

- Remove the whole d3d9 core and use another, like d3d11, create a new render pipeline and so on. (Yea.. Takes atleast months for doing this, not worth it, and also req a huuuuuge knowledge)

or

- Just do nothing, because it is lagacy to support old CPU. (Damn wtf, this game is based on 2004 CPU)
03/10/2021 23:50 TrøublêMakêr#9
Quote:
Originally Posted by Wanetrain View Post
Not realy.

Well, rework the whole render. Only thing you can do for a good decrease on CPU usage.

Reason: Calculation of the FPS is handled by the CPU.

Possible things you can do:

- Working with elapsed time (in every render function)(render in flyff is just dumpsterfire, don't do it if you don't know what todo (NO C&P!!))

or

- Remove the whole d3d9 core and use another, like d3d11, create a new render pipeline and so on. (Yea.. Takes atleast months for doing this, not worth it, and also req a huuuuuge knowledge)

or

- Just do nothing, because it is lagacy to support old CPU. (Damn wtf, this game is based on 2004 CPU)
man hatte FPS dropps gehabt und kein CPU. Mein Fehler.
03/11/2021 13:52 FlyffDeveloper#10
There is a common CPU usage fix that i think reduces the CPU usage by about half in Timer.cpp at SetFST. However since I see it being sold in various places I am not 100% sure if this is a 'public fix' or a sold fix. So I will not share the exact details/code.
03/15/2021 03:28 xTwiLightx#11
Quote:
Originally Posted by FlyffDeveloper View Post
There is a common CPU usage fix that i think reduces the CPU usage by about half in Timer.cpp at SetFST. However since I see it being sold in various places I am not 100% sure if this is a 'public fix' or a sold fix. So I will not share the exact details/code.
V21.2 leaked source code has a change that removed the call to "Sleep" and put calls to "UpdateTime" inside a while loop.
I guess that has the fix that is being sold?
03/19/2021 12:06 Knusper02#12
Quote:
Originally Posted by xTwiLightx View Post
V21.2 leaked source code has a change that removed the call to "Sleep" and put calls to "UpdateTime" inside a while loop.
I guess that has the fix that is being sold?
The other way around.

This is how offi has done it:
Code:
while (m_lTime < (1000 / FRAME_PER_SEC))
	UpdateTime();
And this is the fix from Aether Flyff Source:
Code:
if( m_lTime < (1000 / FRAME_PER_SEC) )
{
	Sleep( (1000 / FRAME_PER_SEC) - m_lTime );
	UpdateTime();
}
And yes its already public on another forum.