Lower cpu usage

Page 4 of 4 FirstFirst 1234
Results 46 to 56 of 56
  1. #46
    Novice MIKELAVIE is offline
    MemberRank
    Mar 2015 Join Date
    3Posts

    Re: Lower cpu usage

    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!


  2. #47
    Banned Mask is offline
    BannedRank
    Mar 2015 Join Date
    Uk,LondonLocation
    125Posts

    Re: Lower cpu usage

    Normally how much are you getting?
    Main.exe can be reduce but still is just to a certain extend.

  3. #48
    Novice MIKELAVIE is offline
    MemberRank
    Mar 2015 Join Date
    3Posts

    Re: Lower cpu usage

    Quote Originally Posted by Mask View Post
    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 ;)

  4. #49
    Novice MIKELAVIE is offline
    MemberRank
    Mar 2015 Join Date
    3Posts

    Re: Lower cpu usage

    Quote Originally Posted by MIKELAVIE View Post
    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

  5. #50
    Novice Sir Mulich is offline
    MemberRank
    Apr 2015 Join Date
    3Posts

    Re: Lower cpu usage

    Please help me.
    Link to My main 1.05.13 (SS8.3) :
    http://www.mediafire.com/download/1ss8ajydsfa8pt5/main.rar

    Code:
    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. "




  6. #51
    Enthusiast netwhw is offline
    MemberRank
    Sep 2005 Join Date
    27Posts

    Re: Lower cpu usage

    Fantastic!
    Gembrid, your idea is simple and elegant.
    Thanks for sharing.

  7. #52
    Member LHB_LOVE is offline
    MemberRank
    Nov 2008 Join Date
    55Posts

    Re: Lower cpu usage

    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

  8. #53
    Member darkmuonline is offline
    MemberRank
    Aug 2016 Join Date
    76Posts

    Re: Lower cpu usage

    Hi guys, i need the offsets for my main 1.02C.

  9. #54
    Enthusiast MagicBlad is offline
    MemberRank
    Oct 2006 Join Date
    PeruLocation
    33Posts

    Re: Lower cpu usage

    Quote Originally Posted by 8bitcore View Post
    with small numbers of monsters and characters on the screen the CPU usage to 10%
    awesome, thx

    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 by MagicBlad; 23-04-20 at 06:59 PM. Reason: code tag

  10. #55
    Novice dnetford is offline
    MemberRank
    May 2020 Join Date
    4Posts

    Re: Lower cpu usage

    How can i see the main.exe source code?

  11. #56

    Re: Lower cpu usage

    Quote Originally Posted by dnetford View Post
    How can i see the main.exe source code?
    mby this can help you understand better about client sources

    http://forum.ragezone.com/f82/client-source-1092360/



Page 4 of 4 FirstFirst 1234

Advertisement