Hacking cIOSX rev21: controller lag [FIXED!]

Yuan

Well-Known Member
Member
Joined
Oct 1, 2007
Messages
1,291
Trophies
0
XP
371
Country
Brazil
kamiro04 said:
Wow! thanks davebaol, I'll test it now!
Do you remember of another problematic game you don't own that could be used to test it?

Smash Bros Brawl

- Pause loop with rev20/21 EHCI

I will test it soon too.

EDIT: Fixed, cooking mama is lagless too!

Thanks a lot davebaol!
 

netspy

Well-Known Member
OP
Newcomer
Joined
Sep 8, 2010
Messages
92
Trophies
1
XP
269
Country
United States
@nando: that's weird, I've never seen such a thing before. Maybe you could try to install ModMii again (in a standard path like C:\ModMii) ?

@davebaol: Thanks a lot ! That's really great !
I added your solution on the 1st page of this topic (I didn't have the time to test it yet, but from what I read it seems to be working fine).
Can you please tell us what the bug was and how you fixed it (i.e. what change you made in the source code) ?

Moreover, can someone get in touch with Waninkoko to tell him about the fix davebaol has found ? It could be useful if Waninkoko ever release another rev in a few months, he could include the fix.
 

nando

Well-Known Member
Member
Joined
Jan 1, 2008
Messages
2,263
Trophies
0
Website
Visit site
XP
1,023
Country
United States
alright, i need help. do i really need the beta to use the fixed EHCI module? or can i do it with the regular modmii. and we are replacing the EHCI file inside modmii/Modules/W21Modules?


i'm asking because i'm having a hell of a time downloading the beta. the link takes me to the download page but there are 6 unlabeled download buttons and i can't seem to select modmii.


i don't think i'll be able to get this working either way since i keep getting invalid files.
 

sock99

Well-Known Member
Newcomer
Joined
Feb 3, 2010
Messages
45
Trophies
0
Website
Visit site
XP
52
Country
France
nando said:
i'm asking because i'm having a hell of a time downloading the beta. the link takes me to the download page but there are 6 unlabeled download buttons and i can't seem to select modmii.

Source:
Modmii beta direct link removed by me - job done
 

nando

Well-Known Member
Member
Joined
Jan 1, 2008
Messages
2,263
Trophies
0
Website
Visit site
XP
1,023
Country
United States
thanks sock99

i'm still confused as to which EHCI file i'm replacing. i got modmii running, and i can make the wads, but modmii tells me i have a bad file.
 

netspy

Well-Known Member
OP
Newcomer
Joined
Sep 8, 2010
Messages
92
Trophies
1
XP
269
Country
United States
It's normal that ModMii tells you the file is invalid, since it's a modified version and ModMii is not expecting such a resulting file. Don't worry about that.
 

davebaol

Well-Known Member
Member
Joined
Sep 3, 2010
Messages
912
Trophies
0
XP
192
Country
Italy
For building cIOS[]-v21 with fixed lag where is the slot and is the base follow this steps:[*]Download and unzip ModMii4.4.5B-BETA [*]Replace "modules\W21Modules\EHCI.app" with mine. [*]Launch ModMii4.4.5B-BETA[*]Choose download page 4[*]Select the slot and the base you want, for example "2502156 = cIOS249[56]-v21" and/or "2502157 = cIOS250[57]-v21"
NOTE 1: You can also choose base 37 or 38.
NOTE 2: Don't select the one with [EHCI-v19] appended.[*]Enter D to download the wad[*]Ignore the warning message
QUOTE said:
Checking entries in COPY_TO_SD\Download_Log.md5
COPY_TO_SD\WAD\cIOS[]-v21.wad: Invalid
Results: 1 files processed, 0 good files, 1 bad files.
It's absolutely normal since the EHCI module has been replaced so MD5 check fails.[*]Use MultiMod Manager to install the wad(s)
NOTE: despite the file name it's a real rev21 without lag[*]Enjoy it
cool.gif

CAUTION:
After replacing EHCI.app in modules folder ModMii4.4.5B-BETA will actually generate all rev21-LagFix cios with my EHCI module.
If you want to download official rev21 wads you need to restore the original EHCI.app


netspy said:
@davebaol: Thanks a lot ! That's really great !
I added your solution on the 1st page of this topic (I didn't have the time to test it yet, but from what I read it seems to be working fine).
Can you please tell us what the bug was and how you fixed it (i.e. what change you made in the source code) ?
I've fixed the wrong message management in timer.c by making a punctual rollback to rev19, just a few lines of code.
All the other sources committed by Wanikoko till 2010-12-25 (last EHCI module included in rev21) are untouched.

QUOTE(netspy @ Jan 26 2011, 08:05 AM)
Moreover, can someone get in touch with Waninkoko to tell him about the fix davebaol has found ? It could be useful if Waninkoko ever release another rev in a few months, he could include the fix.
Yeah of course, if somebody tell me via pm how to contact Waninkoko I'll be glad to give him the fixed source so he can commit the changes.
 

tueidj

I R Expert
Member
Joined
Jan 8, 2009
Messages
2,569
Trophies
0
Website
Visit site
XP
999
Country
davebaol said:
Yeah of course, if somebody tell me via pm how to contact Waninkoko I'll be glad to give him the fixed source so he can commit the changes.
Why not just post the changes here, since you're already obligated to by the GPL.
 

churkus

Member
Newcomer
Joined
May 27, 2006
Messages
21
Trophies
0
XP
210
Country
If this lag issue is caused by HD spindown, you can take Seagate Expansion 500gb off this list, as it can be set to never spindown via the seagate manager software. if this has already been done, ignore!
 

jesquinas

Well-Known Member
Member
Joined
Apr 14, 2010
Messages
117
Trophies
0
XP
44
Country
I dont know where is the screen where you choose a save file in "Wario Land: Shake It!" .Can you tell me where is it for testing the lag issues in my hard disk?

Thanks.
 

davebaol

Well-Known Member
Member
Joined
Sep 3, 2010
Messages
912
Trophies
0
XP
192
Country
Italy
BBogey said:
daveabol, nice you fixed it!
Could you share the source or diff.

If you like to use the modified elf with other bases, just replace elf in rev21 folder, then build rev21 wads.
See this x4mers post.
Yeah I know. As you can see I've already built and tested base 57 too
davebaol said:
  • Shaun White Skateboarding works perfectly on base 56 and 57 (previous cIOS249[56]-v21[EHCI-v19] doesn't support that game).
Also you can easily change the slot with ShowMiiWads.
wink2.gif


tueidj said:
davebaol said:
Yeah of course, if somebody tell me via pm how to contact Waninkoko I'll be glad to give him the fixed source so he can commit the changes.
Why not just post the changes here, since you're already obligated to by the GPL.
Because right now I'm at work and the source is at home on my pc.
Please be patient, later I'll post the changes here.
happy.gif


QUOTE(netspy @ Jan 26 2011, 02:00 PM)
Thanks Churkus, but I set the spindown delay to 'Never' before testing, and the lag was there.
In fact the lag issue is spindown independent.
 

davebaol

Well-Known Member
Member
Joined
Sep 3, 2010
Messages
912
Trophies
0
XP
192
Country
Italy
Ok guys, sorry for double posting.
blush.gif


Since I can't post the changes right now and also a few people asked me via pm how I actually fixed the lag issue I'm gonna try to explain you what happened in EHCI module of rev 20 and 21.

Let's start looking at the diff in timer.c between rev19 and rev20 (first time lag issue appeared):
https://github.com/waninkoko/ehci-module/co...922c9837#diff-5

As you can see in rev20 the messages 0x555 and 0x666 have been unified in a single message 0x666.
Also the send/receive sequence has been changed by removing the send_message(0x555) above the cycle and the reveive_message() below the cycle.
And the start time of the timer has been set to 0 instead of 1 million.

Not sure, 'cause the issue is really subtle, but I suspect the timing logic in rev20/21 triggers 2 watchdogs in rapid sequence maybe even overlapped, so generating the tedious lag for certain drives.

If someone else has a better explanation I'll be glad to read it.
happy.gif


That's all for the time being
biggrin.gif
 

FIX94

Former Staff
Former Staff
Joined
Dec 3, 2009
Messages
7,284
Trophies
0
Age
30
Location
???
XP
11,248
Country
Germany
Thanks davebaol, now everything works perfect, no lags at all! Do you know why waninkokos module is 14,5kb and your compiled version 14,8kb? I compiled the official module and it's also 14,8kb, I don't understand why.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
  • SylverReZ @ SylverReZ:
    @rqkaiju2, Physical media is a great source for archiving your data, none of that cloud storage shiz.
    +1
  • AncientBoi @ AncientBoi:
    [squeezes @SylverReZ onto a physical media, then archives you in my old stuff box] :tpi::rofl2::tpi:
    +1
    AncientBoi @ AncientBoi: [squeezes @SylverReZ onto a physical media, then archives you in my old stuff box]... +1