Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Lower cpu usage

Joined
Jun 27, 2010
Messages
940
Reaction score
1,193
@cocs55
search for free offset on main and write
PUSH 1
CALL DWORD PTR DS:[00838A4A]
JMP 00603045
7EzUs76 - Lower cpu usage - RaGEZONE Forums


go to offset 00603052 and jmp to PUSH 1 offset
Qq76GX - Lower cpu usage - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Junior Spellweaver
Joined
Aug 6, 2005
Messages
118
Reaction score
16
Hi dudes!

I NEED HELP, my machine is very low cpu!

The problem is no find lines in my main.exe

My main is :

thanks
 
Junior Spellweaver
Joined
Apr 14, 2007
Messages
111
Reaction score
2
Thanks man, I went from 50 to 17-18 on login and when idle with monsters around, this is so simple and cool, I`m also curious about when WebZen implemented this, before or after? xD
 
Initiate Mage
Joined
Mar 28, 2015
Messages
3
Reaction score
0
Hello, I have read all the topic and i must say i did not understand any thing

I downloaded ollydbg i searched for the SwapBuffers or glFlush

and then i lost track of what i have to do, i am having heavy problems with CPU, that results with Blue screen

please if some one can explain what i need to do in order to lower my CPU I would very much appreciate it!

 
Banned
Banned
Joined
Mar 5, 2015
Messages
104
Reaction score
8
Normally how much are you getting?
Main.exe can be reduce but still is just to a certain extend.
 
Initiate Mage
Joined
Mar 28, 2015
Messages
3
Reaction score
0
Normally how much are you getting?
Main.exe can be reduce but still is just to a certain extend.


Average of 48 id say, i did change priority to low, and usage to one CPU

But playing with 2 accounts is unreal, and my laptop can hold heavy games

I would love to understand what i can do with this settings and how to lower my CPU

Thank you for you intrest ;)
 
Initiate Mage
Joined
Mar 28, 2015
Messages
3
Reaction score
0
Average of 48 id say, i did change priority to low, and usage to one CPU

But playing with 2 accounts is unreal, and my laptop can hold heavy games

I would love to understand what i can do with this settings and how to lower my CPU

Thank you for you intrest ;)


Ok, setting the mains into one CPU seems to be a bad idea, it puts allot of stress on that single CPU, which is never good
)
Still suffering from some lag spikes, would love to get some advise one how to set the options threw ollydbog (I have 0 EXP in programming)

Thanks for the help :thumbup1:
 
Initiate Mage
Joined
Apr 1, 2015
Messages
4
Reaction score
0
Please help me.
Link to My main 1.05.13 (SS8.3) :
http://www.mediafire.com/download/1ss8ajydsfa8pt5/main.rar

Code:
[/COLOR]CPU DisasmAddress   Hex dump          Command                                      Comments
004E1305    FF15 2C960101   CALL DWORD PTR DS:[<&opengl32.glFlush>]
004E130B    FF75 08         PUSH DWORD PTR SS:[EBP+8]
004E130E    FF15 5C910101   CALL DWORD PTR DS:[<&gdi32.SwapBuffers>]
004E1314    A1 D0691E01     MOV EAX,DWORD PTR DS:[main.11E69D0]
004E1319    2B45 8C         SUB EAX,DWORD PTR SS:[EBP-74]
004E131C    8945 98         MOV DWORD PTR SS:[EBP-68],EAX
004E131F    837D 98 28      CMP DWORD PTR SS:[EBP-68],28
004E1323    7D 2F           JGE SHORT main.004E1354
004E1325    6A 28           PUSH 28
004E1327    58              POP EAX
004E1328    2B45 98         SUB EAX,DWORD PTR SS:[EBP-68]
004E132B    8985 74FEFFFF   MOV DWORD PTR SS:[EBP-18C],EAX
004E1331    FFB5 74FEFFFF   PUSH DWORD PTR SS:[EBP-18C]
004E1337    FF15 44920101   CALL DWORD PTR DS:[<&kernel32.Sleep>]
004E133D    A1 D0691E01     MOV EAX,DWORD PTR DS:[main.11E69D0]
004E1342    0385 74FEFFFF   ADD EAX,DWORD PTR SS:[EBP-18C]
004E1348    A3 D0691E01     MOV DWORD PTR DS:[main.11E69D0],EAX
004E134D    C745 98 2800000 MOV DWORD PTR SS:[EBP-68],28
004E1354    8B85 88FEFFFF   MOV EAX,DWORD PTR SS:[EBP-178]
004E135A    0345 98         ADD EAX,DWORD PTR SS:[EBP-68]
004E135D    8945 94         MOV DWORD PTR SS:[EBP-6C],EAX
004E1360    0FB605 BF691E01 MOVZX EAX,BYTE PTR DS:[main.11E69BF]
004E1367    85C0            TEST EAX,EAX
004E1369    0F84 94000000   JE main.004E1403
004E136F    833D 18F31A01 0 CMP DWORD PTR DS:[main.11AF318],5
004E1376    0F85 87000000   JNE main.004E1403
004E137C    B9 A87FB308     MOV ECX,main.08B37FA8
004E1381    E8 04201500     CALL main.0063338A
004E1386    83F8 FF         CMP EAX,-1
004E1389    75 78           JNE SHORT main.004E1403
004E138B    833D 106A1E01 0 CMP DWORD PTR DS:[main.11E6A10],0
004E1392    75 6F           JNE SHORT main.004E1403
004E1394    C705 106A1E01 0 MOV DWORD PTR DS:[main.11E6A10],1
004E139E    68 08EB0101     PUSH main.0101EB08                           ; ASCII "> Connection closed. "


[COLOR=#333333]


 
Newbie Spellweaver
Joined
Nov 15, 2008
Messages
53
Reaction score
7
help me pls !

006D25D1 |. FF15 34347B00 CALL DWORD PTR DS:[<&opengl32.glFlush>] ; OPENGL32.glFlush
006D25D7 |. 8B4D 08 MOV ECX,DWORD PTR SS:[EBP+8]
006D25DA |. 51 PUSH ECX ; /hDC
006D25DB |. FF15 8C307B00 CALL DWORD PTR DS:[<&gdi32.SwapBuffers>] ; \SwapBuffers
006D25E1 |> FF15 60317B00 CALL DWORD PTR DS:[<&kernel32.GetTickCount>] ; [GetTickCount
006D25E7 |. 2B85 A0FEFFFF SUB EAX,DWORD PTR SS:[EBP-160]
006D25ED |. 8985 98FEFFFF MOV DWORD PTR SS:[EBP-168],EAX
006D25F3 |> 83BD 98FEFFFF 28 /CMP DWORD PTR SS:[EBP-168],28
006D25FA |. 7D 14 |JGE SHORT main.006D2610
006D25FC |. FF15 60317B00 |CALL DWORD PTR DS:[<&kernel32.GetTickCount>] ; [GetTickCount
006D2602 |. 2B85 A0FEFFFF |SUB EAX,DWORD PTR SS:[EBP-160]
006D2608 |. 8985 98FEFFFF |MOV DWORD PTR SS:[EBP-168],EAX
006D260E |.^EB E3 \JMP SHORT main.006D25F3
006D2610 |> 8B15 C4817E00 MOV EDX,DWORD PTR DS:[7E81C4]
006D2616 |. 0395 98FEFFFF ADD EDX,DWORD PTR SS:[EBP-168]
006D261C |. 8915 C4817E00 MOV DWORD PTR DS:[7E81C4],EDX
006D2622 |. 33C0 XOR EAX,EAX
006D2624 |. A0 4CD0EB07 MOV AL,BYTE PTR DS:[7EBD04C]
006D2629 |. 85C0 TEST EAX,EAX
006D262B |. 74 53 JE SHORT main.006D2680
006D262D |. 833D 88807E00 05 CMP DWORD PTR DS:[7E8088],5
006D2634 |. 75 4A JNZ SHORT main.006D2680
006D2636 |. B9 88818705 MOV ECX,main.05878188
006D263B |. E8 DADCE3FF CALL main.0051031A
006D2640 |. 83F8 FF CMP EAX,-1
006D2643 |. 75 3B JNZ SHORT main.006D2680
006D2645 |. 833D 58D0EB07 00 CMP DWORD PTR DS:[7EBD058],0
006D264C |. 75 28 JNZ SHORT main.006D2676
006D264E |. C705 58D0EB07 01000000 MOV DWORD PTR DS:[7EBD058],1
006D2658 |. 68 24897E00 PUSH main.007E8924 ; /Arg2 = 007E8924 ASCII "> Connection closed. "
006D265D |. 68 807B8705 PUSH main.05877B80 ; |Arg1 = 05877B80
006D2662 |. E8 AAF3D4FF CALL main.00421A11 ; \main.00421A11
006D2667 |. 83C4 08 ADD ESP,8
006D266A |. 6A 01 PUSH 1 ; /Arg1 = 00000001
006D266C |. B9 807B8705 MOV ECX,main.05877B80 ; |
006D2671 |. E8 44F6D4FF CALL main.00421CBA ; \main.00421CBA
006D2676 |> 6A 70 PUSH 70
 
Newbie Spellweaver
Joined
Oct 3, 2006
Messages
28
Reaction score
2
with small numbers of monsters and characters on the screen the CPU usage to 10%
awesome, thx :thumbup1:

1.07v+

Code:
BYTE FixCpuUsage[7] = { 0xE9, 0x99, 0x5A, 0x4C, 0x00, 0x90, 0x90 };
BYTE FixCpuUsage2[13] = { 0x6A, 0x01, 0xFF, 0x15, 0x74, 0x51, 0x28, 0x09, 0xE9, 0x48, 0xA5, 0xB3, 0xFF };
memcpy((int*)0x004A9A82, FixCpuUsage, sizeof(FixCpuUsage));
memcpy((int*)0x0096F520, FixCpuUsage2, sizeof(FixCpuUsage2));


i convert this code to match with main 0.99.28 (99b)

Code:
BYTE FixCpuUsage[18] = { 0xE9, 0x1D, 0x14, 0x03, 0x00, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90, 0x90 };
BYTE FixCpuUsageTimer[13] = { 0x6A, 0x01, 0xFF, 0x15, 0x48, 0xA1, 0x5F, 0x00, 0xE9, 0xB6, 0xEB, 0xFC, 0xFF };
memcpy((int*)0x005C8A4E, FixCpuUsage, sizeof(FixCpuUsage));
memcpy((int*)0x005F9E70, FixCpuUsageTimer, sizeof(FixCpuUsageTimer));
works great!

thanks for sharing :)
 
Last edited:
Back
Top