Jump to content


Global Message: Welcome to the Porting Team v3.3

Identifying Cause of Stutters in My NBA2K12 Port


  • Please log in to reply
14 replies to this topic

#1 bushidounohana

bushidounohana

    Experienced Member

  • Members
  • PipPip
  • 30 posts
  • Graphics Card:NVIDIA 320M
    NVIDIA 8600M GT
    AMD Radeon HD 6970M
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:Castlevania, NBA2K12, anything retro (NES-N64)

Posted 21 February 2012 - 04:17 AM

Hey All!

I've recently been experimenting with the WS8Wine1.4 release candidate engine builds in conjunction with trying to get a fully functioning port of NBA2K12, and lately I've been finding the results hit-or-miss. That is--sometimes it runs flawlessly, while other times, there's an annoying stutter every so often amidst the flawless performance. Thus far, I've been unable to ascertain what makes the difference, as flawless performance almost seems arbitrary (I've tested it across a couple different pieces of hardware, all running 10.7.3, with the same mixed results).

So ...

What's the best way for me to track where things might be going wrong? When running flawlessly, this port works better than even the the recommended engine for NBA2K12 on the WineHQ database (1.3.29) ... I'd love to figure this out!

Thank you!

#2 cluthz

cluthz

    Hall monitor!

  • Forum Moderators
  • 1,786 posts
  • LocationNorway
  • Graphics Card:Nvidia GTX285 1GB
  • Operating System:Mac OS X 10.7 (Lion)
Author

Posted 21 February 2012 - 05:21 AM

First, full system spec then logs.

[HackPro 4.05GHz • NVidia GTX 285 1GB • OSX 10.6.8] ..... [MacBookAir 13 1.7GHz • Intel HD 3000 • OSX 10.7.3]

How to port Steam games .... My Youtube Porting videos ... My Porting Nexus


#3 PommeGolden

PommeGolden

    Rookie Porter

  • Members
  • PipPipPipPip
  • 183 posts

Posted 21 February 2012 - 03:13 PM

try the latest RC / git build.



#4 bushidounohana

bushidounohana

    Experienced Member

  • Members
  • PipPip
  • 30 posts
  • Graphics Card:NVIDIA 320M
    NVIDIA 8600M GT
    AMD Radeon HD 6970M
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:Castlevania, NBA2K12, anything retro (NES-N64)

Posted 21 February 2012 - 11:40 PM

Thank you both for your responses! I fired it up moments ago to see how it would behave today on the MacBook Air, and at the moment there are no hitches. Last night, however, it was hitch city.

cluthz--The relavent system specs for the two systems is below:

MacBook Pro - 2.4 GHz Core2Duo, 6 GB RAM, NVIDIA 8600M GT

MacBook Air - 2.13 GHz Core2Duo, 4 GB RAM, NVIDIA 320M

Keep in mind I'm not expecting earth-shattering performance on either machine--though the MBP obviously has a better sweet spot in terms of trading off resolution/detail for playability. I've been able to get a smooth (yes, relatively speaking) 30-32 fps at 1280x800 (medium player detail, everything else set to low) on the MBP and between 29-30 fps at 1024x640 on the Air (same settings, though I can eek out more performance if I set it to 720x480 and turn anti-aliasing to 2x).

When the hitches occur, they periodically drop me down as much as 10+ fps. I see them almost immediately upon running the app, as the title sequence of the game hitches accordingly.

Here's last night's log (when I was experiencing hitches):

X11.app: DISPLAY does not look like a launchd set variable, unsetting.
X11.app: main(): argc=10
argv[0] = /Applications/Games/NBA2K12.app/Contents/MacOS/WineskinX11
argv[1] = :3786
argv[2] = -depth
argv[3] = 24
argv[4] = +xinerama
argv[5] = -br
argv[6] = -fp
argv[7] = /usr/X11/lib/X11/fonts/75dpi,/usr/X11/lib/X11/fonts/100dpi,/usr/X11/lib/X11/fonts/cyrillic,/usr/X11/lib/X11/fonts/encodings,/usr/X11/lib/X11/fonts/misc,/usr/X11/lib/X11/fonts/OTF,/usr/X11/lib/X11/fonts/Speedo,/usr/X11/lib/X11/fonts/TTF,/usr/X11/lib/X11/fonts/Type1,/usr/X11/lib/X11/fonts/util
argv[8] = -xkbdir
argv[9] = /Applications/Games/NBA2K12.app/Contents/Frameworks/share/X11/xkb
Waiting for startup parameters via Mach IPC.
X11.app: No launchd socket handed off, unsetting DISPLAY
X11.app: do_start_x11_server(): argc=10
argv[0] = /Applications/Games/NBA2K12.app/Contents/MacOS/WineskinX11
argv[1] = :3786
argv[2] = -depth
argv[3] = 24
argv[4] = +xinerama
argv[5] = -br
argv[6] = -fp
argv[7] = /usr/X11/lib/X11/fonts/75dpi,/usr/X11/lib/X11/fonts/100dpi,/usr/X11/lib/X11/fonts/cyrillic,/usr/X11/lib/X11/fonts/encodings,/usr/X11/lib/X11/fonts/misc,/usr/X11/lib/X11/fonts/OTF,/usr/X11/lib/X11/fonts/Speedo,/usr/X11/lib/X11/fonts/TTF,/usr/X11/lib/X11/fonts/Type1,/usr/X11/lib/X11/fonts/util
argv[8] = -xkbdir
argv[9] = /Applications/Games/NBA2K12.app/Contents/Frameworks/share/X11/xkb
Attempting to use pixel depth of 24
[2652154.276] Xquartz starting:
[2652154.276] X.Org X Server 1.11.1
[2652154.276] Build Date: 20110929
[2652154.276] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[2652154.305] (II) GLX: Initialized Core OpenGL GL provider for screen 0
[2652154.392] [dix] Could not init font path element /usr/X11/lib/X11/fonts/encodings, removing from list!
[2652154.454] X11.app: DarwinProcessFDAdditionQueue_thread: Sleeping to allow xinitrc to catchup.
[2652154.489] (EE) Error loading keymap /tmp/Wineskin/share/X11/xkb/compiled/server-3786.xkm
[2652154.489] (EE) XKB: Failed to load keymap. Loading default keymap instead.
[2652178.771] Server terminated successfully (0). Closing log file.

Here's today's log (no hitches, just ran demo to check fps):

X11.app: DISPLAY does not look like a launchd set variable, unsetting.
X11.app: main(): argc=10
argv[0] = /Applications/Games/NBA2K12.app/Contents/MacOS/WineskinX11
argv[1] = :2158
argv[2] = -depth
argv[3] = 24
argv[4] = +xinerama
argv[5] = -br
argv[6] = -fp
argv[7] = /usr/X11/lib/X11/fonts/75dpi,/usr/X11/lib/X11/fonts/100dpi,/usr/X11/lib/X11/fonts/cyrillic,/usr/X11/lib/X11/fonts/encodings,/usr/X11/lib/X11/fonts/misc,/usr/X11/lib/X11/fonts/OTF,/usr/X11/lib/X11/fonts/Speedo,/usr/X11/lib/X11/fonts/TTF,/usr/X11/lib/X11/fonts/Type1,/usr/X11/lib/X11/fonts/util
argv[8] = -xkbdir
argv[9] = /Applications/Games/NBA2K12.app/Contents/Frameworks/share/X11/xkb
Waiting for startup parameters via Mach IPC.
X11.app: No launchd socket handed off, unsetting DISPLAY
X11.app: do_start_x11_server(): argc=10
argv[0] = /Applications/Games/NBA2K12.app/Contents/MacOS/WineskinX11
argv[1] = :2158
argv[2] = -depth
argv[3] = 24
argv[4] = +xinerama
argv[5] = -br
argv[6] = -fp
argv[7] = /usr/X11/lib/X11/fonts/75dpi,/usr/X11/lib/X11/fonts/100dpi,/usr/X11/lib/X11/fonts/cyrillic,/usr/X11/lib/X11/fonts/encodings,/usr/X11/lib/X11/fonts/misc,/usr/X11/lib/X11/fonts/OTF,/usr/X11/lib/X11/fonts/Speedo,/usr/X11/lib/X11/fonts/TTF,/usr/X11/lib/X11/fonts/Type1,/usr/X11/lib/X11/fonts/util
argv[8] = -xkbdir
argv[9] = /Applications/Games/NBA2K12.app/Contents/Frameworks/share/X11/xkb
Attempting to use pixel depth of 24
[2722186.967] Xquartz starting:
[2722186.967] X.Org X Server 1.11.1
[2722186.967] Build Date: 20110929
[2722186.968] _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
[2722187.040] (II) GLX: Initialized Core OpenGL GL provider for screen 0
[2722187.288] [dix] Could not init font path element /usr/X11/lib/X11/fonts/encodings, removing from list!
[2722187.443] X11.app: DarwinProcessFDAdditionQueue_thread: Sleeping to allow xinitrc to catchup.
[2722187.491] (EE) Error loading keymap /tmp/Wineskin/share/X11/xkb/compiled/server-2158.xkm
[2722187.491] (EE) XKB: Failed to load keymap. Loading default keymap instead.

PommeGolden--I've tried rc1-4, and it always seems like a crap shoot ... sometimes it runs flawlessly, sometimes I get hitches. Being mindful of my modest hardware, I also tend to play with all other apps closed. Forgive my ignorance, but where do I find GIT builds?

Thank you all once again!

#5 bushidounohana

bushidounohana

    Experienced Member

  • Members
  • PipPip
  • 30 posts
  • Graphics Card:NVIDIA 320M
    NVIDIA 8600M GT
    AMD Radeon HD 6970M
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:Castlevania, NBA2K12, anything retro (NES-N64)

Posted 21 February 2012 - 11:41 PM

One difference between today and tomorrow--today I was running on battery, last night I plugged in ... am I chasing my tail on that?

#6 cluthz

cluthz

    Hall monitor!

  • Forum Moderators
  • 1,786 posts
  • LocationNorway
  • Graphics Card:Nvidia GTX285 1GB
  • Operating System:Mac OS X 10.7 (Lion)
Author

Posted 21 February 2012 - 11:47 PM

wrong logs :D
need the wine logs, not the x11 logs

[HackPro 4.05GHz • NVidia GTX 285 1GB • OSX 10.6.8] ..... [MacBookAir 13 1.7GHz • Intel HD 3000 • OSX 10.7.3]

How to port Steam games .... My Youtube Porting videos ... My Porting Nexus


#7 bushidounohana

bushidounohana

    Experienced Member

  • Members
  • PipPip
  • 30 posts
  • Graphics Card:NVIDIA 320M
    NVIDIA 8600M GT
    AMD Radeon HD 6970M
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:Castlevania, NBA2K12, anything retro (NES-N64)

Posted 22 February 2012 - 02:49 AM

DOH ... Told you I was a noob!

Bear with me, where do I find the logs for Wine? I didn't see them in my ~/Library/Logs folder or in the root library ... THANK YOU for your patience.

#8 PommeGolden

PommeGolden

    Rookie Porter

  • Members
  • PipPipPipPip
  • 183 posts

Posted 22 February 2012 - 08:59 AM

you need to build your custom git build from source by yourself, usually updated ~6 times a week


http://source.winehq.org/git/wine.git/



#9 cluthz

cluthz

    Hall monitor!

  • Forum Moderators
  • 1,786 posts
  • LocationNorway
  • Graphics Card:Nvidia GTX285 1GB
  • Operating System:Mac OS X 10.7 (Lion)
Author

Posted 22 February 2012 - 09:49 PM

View Postbushidounohana, on 22 February 2012 - 02:49 AM, said:

DOH ... Told you I was a noob!

Bear with me, where do I find the logs for Wine? I didn't see them in my ~/Library/Logs folder or in the root library ... THANK YOU for your patience.

If you do a test run from wineskin.app the wine log will pop up by itself by the end of the run

[HackPro 4.05GHz • NVidia GTX 285 1GB • OSX 10.6.8] ..... [MacBookAir 13 1.7GHz • Intel HD 3000 • OSX 10.7.3]

How to port Steam games .... My Youtube Porting videos ... My Porting Nexus


#10 bushidounohana

bushidounohana

    Experienced Member

  • Members
  • PipPip
  • 30 posts
  • Graphics Card:NVIDIA 320M
    NVIDIA 8600M GT
    AMD Radeon HD 6970M
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:Castlevania, NBA2K12, anything retro (NES-N64)

Posted 23 February 2012 - 12:31 AM

View Postcluthz, on 22 February 2012 - 09:49 PM, said:

If you do a test run from wineskin.app the wine log will pop up by itself by the end of the run

I'm just a big dummy, see the screenshots ... All I see in the User Library folder are folders for other apps and X11 logs. I let it run a while (hence a couple of screenshots) ... I'm sure I'm missing something stupid simple, but I don't know what it is!

http://dl.dropbox.co...Screenshot.tiff

http://dl.dropbox.co...enshot%20B.tiff

And, as you might expect, it's now ran flawlessly for two nights running, sorry to be a pain. :)

#11 bushidounohana

bushidounohana

    Experienced Member

  • Members
  • PipPip
  • 30 posts
  • Graphics Card:NVIDIA 320M
    NVIDIA 8600M GT
    AMD Radeon HD 6970M
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:Castlevania, NBA2K12, anything retro (NES-N64)

Posted 23 February 2012 - 12:33 AM

View PostPommeGolden, on 22 February 2012 - 08:59 AM, said:

you need to build your custom git build from source by yourself, usually updated ~6 times a week


http://source.winehq.org/git/wine.git/



Thank you! I'm just starting to dip my toes in that sort of thing ... I'll do a little searching around/trial and error to see if I can't rig something together. Won't hurt me to try and up my skillset a little bit!

#12 doh123

doh123

    Wineskin Developer

  • Members
  • 3,311 posts
  • LocationOver here
  • Graphics Card:Radeon 6750, Intel HD 3000, Geforce 320m, Geforce 9600, Geforce 9400 (in 3 machines)
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:RPG and Strategy

Posted 23 February 2012 - 03:35 AM

When you click Test Run in Wineskin.app it keeps logs (it doesn't otherwise). They are wrapper specific and not for any long term use, so they are not kept in your OSX logs folder... after you Finish doing a Test Run, it will pop up and ask you "do you want to view the logs" and you can press Yes and they open in TextEdit, where you can save them how you want them, or copy and paste the contents. Logs replace themselves or get deleted every time you run the wrapper... you can always see the last log set by pushing thew View Logs button in Wineskin.app as well.

#13 bushidounohana

bushidounohana

    Experienced Member

  • Members
  • PipPip
  • 30 posts
  • Graphics Card:NVIDIA 320M
    NVIDIA 8600M GT
    AMD Radeon HD 6970M
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:Castlevania, NBA2K12, anything retro (NES-N64)

Posted 23 February 2012 - 05:21 AM

Thank you, cluthz and doh123, at long last here are the logs (from a flawless run ... I can't replicate the issue to save my life now!):

http://dl.dropbox.co...LastRunWine.log

http://dl.dropbox.co.../LastRunX11.log

Hopefully I've at least gotten the correct logs ... let me know if I'm off base again!

Thank you!

#14 cluthz

cluthz

    Hall monitor!

  • Forum Moderators
  • 1,786 posts
  • LocationNorway
  • Graphics Card:Nvidia GTX285 1GB
  • Operating System:Mac OS X 10.7 (Lion)
Author

Posted 23 February 2012 - 07:14 AM

<p> </p>
<pre style="word-wrap: break-word; white-space: pre-wrap; ">
fixme:d3d:resource_check_usage Unhandled usage flags 0x8.
</pre>
<div>This is usually a memory leak, if that log was from playing more than a few minutes, then you&#39;re fine.</div>
<div>I&#39;ve often seen games produce thousand of these lines in a matter of few minutes and then start lagging bad and crashing.</div>
<div> </div>
<div>As far as I can see the lagging could by caused by something else, like system scripts like mds/mdworker running and easting up cpu power.</div>
<div> </div>
<div>If you&#39;ve tested the port thoroughly, like it seem you have, why not upload it to the port database, to help other members :D</div>

[HackPro 4.05GHz • NVidia GTX 285 1GB • OSX 10.6.8] ..... [MacBookAir 13 1.7GHz • Intel HD 3000 • OSX 10.7.3]

How to port Steam games .... My Youtube Porting videos ... My Porting Nexus


#15 bushidounohana

bushidounohana

    Experienced Member

  • Members
  • PipPip
  • 30 posts
  • Graphics Card:NVIDIA 320M
    NVIDIA 8600M GT
    AMD Radeon HD 6970M
  • Operating System:Mac OS X 10.7 (Lion)
  • I like to play:Castlevania, NBA2K12, anything retro (NES-N64)

Posted 23 February 2012 - 06:44 PM

Yeah, I let it run for about 10 minutes. I think your notion of the system scripts is spot-on, as I've been checking out other system logs that seem to at least elude to such a suspicion. It's been absolutely flawless the last few nights, and I'd love to officially share the port with the forum (my first!) ... At work right now (shhh, don't tell the boss ...), but when I get in later on I'll pull everything together and upload. I presume there are guidelines for submission, so I'll search them out here in the forums and make sure I clean up any loose ends on the wrapper side of things.

Thank you, everyone, once again for all of your help! NBA2k12 port forthcoming! :)




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users