Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Low CPU main  (Visto 3209 veces)

0 Miembros and 1 Guest are viewing this topic.

Este tema esta marcado como solucionado. Pulsa aqui si quieres ver la solucion de este tema.

Offline Odisk Posteado: April 22, 2021, 03:22:20 AM | Modificado: April 22, 2021, 09:59:46 AM by Odisk

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 879
  • Gracias recibida: 12345
  • pr
sin tanta explicación es un tema que en desarrollo que si quieren lo pueden ir desarrollando como quieren.


one day

Gracias:

Lotto4K4k, thieugia, muedit, darkes607, marvisur, hungngok9x, Xysad, eraclio1, giahuy, Deivide, mediodas20, Greenland, idpnguyeni, ciren66, OBBY, mavine, ValkyrieDevs, dieguitox, carper, xlichblack, jeuzinn, komandirbk, wallaceh, e911217, Smudevelop, wellwisher22, muisrael, emaspc93, Saige, babydragon, Viper, DEATH, xiazaipw, thangnvv92, BeL4eNaK, Jarvis, bustafa, Honghai2221992, Iямαηɗαɗ ☠, zekcrom, truongtienhp, MDDM, finalfts24, zHammer, hyonzinho666, okilove23, zerg24, luciferlg, douglera21, goliloco, concac123, myway, tyqhaha, hoanmaster, Nakamura, vipgale01, visionmu, tcbaoanh, Felipe0211, daniel202, midapmi, Annabel, MichaelxD, dhaomao, PhantomKr, dlawls662, xufqing, twdc90, leehenry1208, nylanpro, footballmuonline, rivaldo123, 452745444, ZIIIIIK, vaneavanea31, djnansr, nockasdd, waynemartins, anhtjm94, rando, feature21, MADRUGA, Shrimp, stopk, mubongma, Betell Host, Shellshock, Erick05, k4b1b4, RafaMaster, ezesosa, Analista, RAGNAR111, Axelfvm, MrRastaman, mangal, leuhaN, scfmt, takumi12, admmunowar, thesofer, kieuson, mos02673, teza123, 161012, roshux, RinOv, Almdar, ADM-OMEGA, bin9xhn2, xpam, chauttc, vokirval, afiqui, skinmuonline, LuciferXT, 0911300989, tunhi3000, misskala, jonathadll, wagnii, Bruno Macedo, xz18786628, boylasd, NghienMU, thieugiapc, miruii, rekis, mentorfdp, victhorinox, Murilo, 153426, nujd00, thienthan1117, giangpha, Saxius, ZER0NIS, TheJoker, lramon, Lazarocp2020, wildriff66, Darki12345, solar, backerchen, ruojing, phuongcuongmsqm, m1sterio, Alexander, donciukas14, neverbionic, BPhamvn, kailknight, zhangjianle865, slavea, thongd45, wiljipa, thunwa1, joey, binhchivn, ziza, Miisoia, forever3000, michelmy, yNot, hanzel, dmtuan23, thang1987, Crowley, soulerdo, BRUM4T1CK, famoire, mugloves99, son1xx2, 4goTTen21, theanh27, antoniodel, dpainter, VERNERON, kingteamus, rayssa1218, Van_Bom, NoobDK, kindz1, Sergio Franco, korron, testeador1, a269633915, Thedevilslefthand, kove0816, sanlp, emersonx13, T-LEGENDARY, mustx1, erickmalfoy, ์Nightz, banam8910, NasLy, ordeh, barteo, ExPaySoluciones, Raytheon, mittosaker, coco87, Alexbrm, Higgs, qixar, calipso, Hiếu Đại Ca, kryptongamer, k12leito, brendow, realman, sagamacus, elcris99, votam2x, tuyendam, Wendigo, BladeKnight109, lstuan, cobyzero, ashlay, becoloko, TheKing027, sannea, z348870672, fengyun52894, tutu100, aof10022535, xlockee, Dexign, muzic25, gamingmu, draco425, Keko, zodiacobr, vcore30, Lude, Genilson23, Daniel@, animator, jamiones24, superrin, Sekhani, Zeus, max1musn1, frenzo2009, anh1pk, Tester1838a, arxeane, Ryuno, josecola, TERROR, dreamboy7, ImportedPotato, plyn, nguyechien5520, birdy491, GoldSun, InFamous, ProGuard, juan1997, KhongGianOL, jhahernandezcas, pquintal, taovanluc, Djassar, walkeny, boncha, zeruskill, mkslep, xXTurnerxD, Angel18, calabocajea, jhonhy, ldads, usersa, quyanxu, vnshell, nhanphu200, j4b1er, neeck1234, knight.php, Nexus, GameNet, GX_KYO, shangxin, lechianh88, Kosh, Mph1405, ZTMarkz, Peluuca, hiep, SetecSoft, Phoenix666, waltervg91, BooM, SuperCris, manfromvn, ailsoncost, Dieguinho, LeeHenry, besiktas, nelson, RafhaelSouza, saske98, tphe1234, Vitaminka, sagat202, comelon666, Roccket, jeferson, showmax, 6atters, gega, Ogoc, 183358, GabrielDevel, MsotoC, stark98, tiendoanit, zyghydev, mocorongo, alexfy, melo920, Cartman, spartacus, kaisudo, Ketamine, rodritwm, allhoy, Mathi, tammadall, iSh4dow, superice, glmmlg, mechaloco, choosemu, Ifreat, dsw_pool, PachoRasta, malke, andreyzz, artem, xaxx10, laulinh2, redf0x, MaxVoll, herjuni, dizzys, darkalves2, Jean LR, drendy, tdthanh95, samsunggon, s00x, JavixFer, kayito, zerosp, muonlineteste2, davidrcj, onlinezajzaj, repiolaa, gredy, zodiacddos, npt.formu, ohmagic, pimkungclub, programingmu, Kapocha33, universalmu4, ArcSyS, beibei, h3yShOk, djagripnos, gacon201294, cri0, RaduOnica, beecubin, legacy101, c4nhsatcodong, zlethanhlong, axeman192, kenh14, thanhbinhqht, Hoangsy99, ZabiinoOo, dahouzi, chuckhai, whisky123, LTP Team, judakiss21, spider, vantuan02hn, Pyke, Bruce, louis, SaintZeus, 423646802, Karuritoku

Offline Keko #1 Posteado: May 14, 2021, 12:24:42 PM

  • 0 puntos por ventas
  • *
  • Rank: Heroe
  • Posts: 174
  • Gracias recibida: 212
  • ar
startdraw function?


Offline lunaticodeveloper #2 Posteado: May 14, 2021, 12:42:55 PM

  • MAESTRO

  • US. DE HONOR

  • +4 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.818
  • Gracias recibida: 22300
  • ar
no pregunten cosas raras!

Soporte premium ya sabes contactame!
Experto en MuOnline! Mira mis aportes de primera!
Alojamiento de Servidores / Venta de Configuraciones Mu Online / Espacio de alojamiento para WebHost / Venta de diseño grafico.

Marcado como mejor respuesta por: Odisk Posteado May 14, 2021, 11:54:34 PM

Offline kayito #3 Posteado: May 14, 2021, 04:15:31 PM | Modificado: May 14, 2021, 11:55:37 PM by kayito

  • MAESTRO

  • C++ Coder
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 1.037
  • Gracias recibida: 15425
  • ar
Modificando ese 40 por un número más chico se pueden subir los fps del main de una manera no muy elegante jaja
Yo no lo recomiendo hacer porque se pueden perjudicar algunas animaciones

Lo de llamar al Sleep si es una buena solución, de hecho yo lo resolví de la siguiente manera:

Code: [Select]
SetCompleteHook(0xE9, /* Aca va el offset del GetTickCount */, &ReduceCPU);

__declspec(naked) void ReduceCPU()
{
static DWORD JmpBack = /* Aca va el offset de la siguiente instrucción del GetTickCount */

__asm
{
Push 1;
Call Dword Ptr Ds : [/* Aca va el offset del Sleep */] ;
Call Dword Ptr Ds : [/* Aca va el offset del GetTickCount */] ;
Jmp[JmpBack];
}
}

EJEMPLO EN MAIN 1.04J


Offline Keko #4 Posteado: May 14, 2021, 11:53:30 PM | Modificado: May 15, 2021, 10:33:52 AM by Keko

  • 0 puntos por ventas
  • *
  • Rank: Heroe
  • Posts: 174
  • Gracias recibida: 212
  • ar
Modificando ese 40 por un número más chico se pueden subir los fps del main de una manera no muy elegante jaja
Yo no lo recomiendo hacer porque se pueden perjudicar algunas animaciones

Lo de llamar al Sleep si es una buena solución, de hecho yo lo resolví de la siguiente manera:

Code: [Select]
SetCompleteHook(0xE9, /* Aca va el offset del GetTickCount */, &ReduceCPU);

__declspec(naked) void ReduceCPU()
{
static DWORD JmpBack = /* Aca va el offset de la siguiente instrucción del GetTickCount */

__asm
{
Push 1;
Call Dword Ptr Ds : [/* Aca va el offset del Sleep */] ;
Call Dword Ptr Ds : [/* Aca va el offset del GetTickCount */] ;
Jmp[JmpBack];
}
}

EJEMPLO EN MAIN 1.04J
Code: [Select]
SetCompleteHook(0xE9, 0x0066271F, &ReduceCPU);

__declspec(naked) void ReduceCPU()
{
static DWORD JmpBack = 0x00662725;

__asm
{
Push 1;
Call Dword Ptr Ds : [0x0075615C] ;
Call Dword Ptr Ds : [0x00756140] ;
Jmp[JmpBack];
}
}

Alguien que consiga los offset para Main 1.04e?  aplausos

Gracias:


Offline T-LEGENDARY #5 Posteado: July 13, 2021, 04:49:31 PM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 698
  • Gracias recibida: 8825
  • br
@kayito tiene offset e lo codigo completo para el Main 1.04e ?


Offline ailsoncost #6 Posteado: October 18, 2021, 06:49:06 PM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 43
  • Gracias recibida: 498
  • br
no 1.04e Main funcionado!

Main.h
void ReduceCPU();


Offline T-LEGENDARY #7 Posteado: December 31, 2021, 07:16:42 AM

  • Colaborador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 698
  • Gracias recibida: 8825
  • br
no 1.04e Main funcionado!

Main.h
void ReduceCPU();

passsa o codigo todo pra 1.04e por favor mano


Offline ImportedPotato #8 Posteado: January 04, 2022, 10:00:09 AM

  • 0 puntos por ventas
  • *
  • Rank: Heroe
  • Posts: 174
  • Gracias recibida: 32
  • ph
up for 1.04e who have?


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3330 Views
Last post January 17, 2020, 09:30:37 PM
by PRONEXUS
4 Replies
3382 Views
Last post September 28, 2019, 04:58:06 PM
by Ryuno
13 Replies
4692 Views
Last post April 18, 2022, 11:26:18 PM
by esteban
16 Replies
3534 Views
Last post February 07, 2022, 05:06:25 PM
by osvaldotl
1 Replies
1139 Views
Last post October 17, 2019, 07:26:22 PM
by mechaloco