Identifying Cause of Stutters in My NBA2K12 Port
#1
Posted 21 February 2012 - 04:17 AM
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
Posted 21 February 2012 - 05:21 AM
[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
Posted 21 February 2012 - 03:13 PM
try the latest RC / git build.
#4
Posted 21 February 2012 - 11:40 PM
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
Posted 21 February 2012 - 11:41 PM
#6
Posted 21 February 2012 - 11:47 PM
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
Posted 22 February 2012 - 02:49 AM
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
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
#9
Posted 22 February 2012 - 09:49 PM
bushidounohana, on 22 February 2012 - 02:49 AM, said:
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
Posted 23 February 2012 - 12:31 AM
cluthz, on 22 February 2012 - 09:49 PM, said:
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
Posted 23 February 2012 - 12:33 AM
PommeGolden, 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
Posted 23 February 2012 - 03:35 AM
#13
Posted 23 February 2012 - 05:21 AM
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
Posted 23 February 2012 - 07:14 AM
<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're fine.</div>
<div>I'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've tested the port thoroughly, like it seem you have, why not upload it to the port database, to help other members
[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
Posted 23 February 2012 - 06:44 PM
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















