Commit Graph

11758 Commits

Author SHA1 Message Date
Steve Checkoway dbbf9497cd Fix connect. Just about everything has gethostbyname. It is not thread safe and probably should not be used in general; however, it is fine here. 2004-09-08 08:06:35 +00:00
Glenn Maynard 2625da14f2 cleanup
support semaphore timeouts
2004-09-08 07:56:32 +00:00
Glenn Maynard 8c92f9ec0f cleanup, simplify 2004-09-08 07:34:38 +00:00
Glenn Maynard b582fa5ebc update 2004-09-08 06:48:45 +00:00
Glenn Maynard 81f2f6460a hopefully fix init order in vc6 2004-09-08 06:33:07 +00:00
Chris Danford eb5e274128 fix Xbox compile 2004-09-08 05:48:48 +00:00
Chris Danford 26b6c80b91 remove VISE uninstall check 2004-09-08 05:34:46 +00:00
Chris Danford 1f6ed69612 remove old installer 2004-09-08 05:13:16 +00:00
Glenn Maynard 30a5054533 fix mutexes under valgrind; type fix 2004-09-08 04:45:16 +00:00
Glenn Maynard 546e048fa2 Support background loading. The principle is simple: when the song
changes, request all of its assets that we need be loaded.  Once each
piece finishes, load it from cache.  We still take a skip to decode graphics
(banners in particular), but not from disk seeks, which is an issue on hard
drives and fatal on CDs.

This also handles fading banners much more precisely: we fade to the
high res banner once the music wheel has settled.  Before, it was approximate;
we'd often load the banner before we settled.  It still skips, but it's much less
prominent to skip when the music wheel is completely settled, than to skip
just before it settles.

Some more work is necessary to resolve lock contention; currently, you'll
still see frequent skips off a CD (but not constant as before).  I'm working
on that, but I'm not sure if I want to put that in before the release, since
it's caused some crashes that I havn't tracked down.

The actual background work is disabled, and may not be enabled for the
release.  I'm committing this to get the basic API work ironed out.  It still
gives perceptual skip improvements even without the background thread.
2004-09-08 02:53:54 +00:00
Glenn Maynard d42b2b965c FadingBanner no longer auto-fades low res banners; that's up to
ScreenSelectMusic.  (If we want simpler screens to use low res banners,
we can create an AutoFadingBanner to do what this logic did.)  It's ugly
to have music wheel metrics, etc. in here.
2004-09-08 02:46:13 +00:00
Glenn Maynard 6370cf385f update 2004-09-08 02:31:08 +00:00
Glenn Maynard be22d989cb fix warning 2004-09-08 02:28:32 +00:00
Glenn Maynard b86988a538 update 2004-09-08 02:21:09 +00:00
Glenn Maynard 8296900391 This is a helper to precache files in the background, which is used to
make the music selection screen playable when music is being read
off a CD.  This is actually disabled; I'm adding it so I can shift
ScreenSelectMusic to use the API.
2004-09-08 02:17:08 +00:00
Glenn Maynard a5dae29422 reduce lock contention 2004-09-08 01:38:22 +00:00
Glenn Maynard eff24b6380 fix odd newline behavior in wrap mode 2004-09-08 01:21:52 +00:00
Glenn Maynard 96e96f042f cleanup 2004-09-08 00:42:07 +00:00
Glenn Maynard d6d3a3ccc5 typo 2004-09-08 00:36:30 +00:00
Glenn Maynard 2846fb4c9c fix crashes on invalid #MODS entry 2004-09-08 00:33:20 +00:00
Glenn Maynard 8c284daa36 fix TexCoordArrayFromRect crash 2004-09-08 00:21:25 +00:00
Glenn Maynard f633a309d7 cleanup
fix crash
2004-09-08 00:03:06 +00:00
Charles Lohr 71fbc18e1f Oops. Accidently added network options... again. 2004-09-07 23:34:18 +00:00
Glenn Maynard 2accf47cf3 fix false "underruns" 2004-09-07 22:57:53 +00:00
Glenn Maynard 3d5d6687f6 whoops 2004-09-07 21:29:12 +00:00
Glenn Maynard bfd8078f5d OSC3 update 2004-09-07 21:27:22 +00:00
Glenn Maynard ad0369f7fc update 2004-09-07 21:26:46 +00:00
Glenn Maynard f9478959da log SongManager::RevertFromDisk 2004-09-07 20:38:01 +00:00
Steve Checkoway 98580f128b Remove Exceptions. 2004-09-07 14:00:35 +00:00
Steve Checkoway dee65098f1 Cleanup 2004-09-07 13:57:21 +00:00
Steve Checkoway f08a2d00c9 Remove Exceptions since OS X does not catch them. Instead, it waits for the signal. 2004-09-07 13:44:06 +00:00
Steve Checkoway 1e036b76fd Fix year 2004-09-07 13:27:00 +00:00
Steve Checkoway 54f869a424 If it is invalid, GetThreadBacktraceContext will fail anyway. 2004-09-07 13:25:47 +00:00
Steve Checkoway be70a826c6 Also true for OS X. 2004-09-07 13:14:36 +00:00
Steve Checkoway 7b2ec2cee3 Use uint64_t except where other types are expected. 2004-09-07 12:59:08 +00:00
Steve Checkoway 3dac41c399 Add missing license text. 2004-09-07 12:51:24 +00:00
Steve Checkoway bdd4988829 Simplify. 2004-09-07 12:49:49 +00:00
Steve Checkoway a50839e1d0 Remove stubs, const fix 2004-09-07 12:40:44 +00:00
Steve Checkoway 8adbeda32a Use DarwinThreadHelpers, remove mach stuff. 2004-09-07 12:38:10 +00:00
Steve Checkoway 55611af7dd Add DarwinThreadHelpers.* 2004-09-07 12:36:09 +00:00
Steve Checkoway dcbff718f5 OS X has stubs for ForceCrashHandlerDeadlock now. 2004-09-07 11:13:44 +00:00
Steve Checkoway 0669938e81 Fix comment 2004-09-07 11:12:29 +00:00
Glenn Maynard 6fda4030ee optimize 2004-09-07 09:16:08 +00:00
Chris Danford b1cdc58893 update FAQ 2004-09-07 06:08:52 +00:00
Glenn Maynard 9cf85e4b84 remove comment 2004-09-07 04:24:26 +00:00
Glenn Maynard 7f805dcc87 simplify 2004-09-07 03:26:23 +00:00
Glenn Maynard 8f0c559ef4 dump all thread stacks on semaphore timeout 2004-09-07 03:17:56 +00:00
Glenn Maynard 4d2d187be0 update 2004-09-07 03:16:17 +00:00
Glenn Maynard ce6db184e3 ForceCrashHandlerDeadlock takes an ID
handle iID == GetInvalidThreadId() for "all"
2004-09-07 03:15:54 +00:00
Glenn Maynard 3f615baa8d remove ugly ThreadImpl::GetCrashHandle 2004-09-07 03:05:56 +00:00