Commit Graph

382 Commits

Author SHA1 Message Date
Charlie Groves 2a2d36d528 Break SceneBlock and RethinkOp out of MisoScenePanel so the blocks in a visible region can be resolved without an underlying panel
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@512 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-28 01:55:15 +00:00
Charlie Groves 4ec18f5250 The resource url isn't necessarily going over http
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@511 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-28 01:29:50 +00:00
Michael Bayne e00b4ddd6b Switch to new logging API.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@510 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-27 22:55:10 +00:00
Charlie Groves b521b4bfbf Instead of caching the last 10 sound clips, cache up to 4 megs of clips
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@509 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-27 22:09:03 +00:00
Michael Bayne 209504479d Fix this user of samskivert's log object.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@507 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-27 18:53:20 +00:00
Charlie Groves 3b86bbe9cc Check if a block was the last visible one we were waiting on even if it was abandoned before it was resolved. The view location can change before resolution completes.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@506 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-23 23:49:38 +00:00
Charlie Groves dce34521a3 When refreshing a scene, only delay repaints if rethink finds new blocks to resolve
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@505 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-23 22:43:23 +00:00
Andrzej Kapolka 7c67df8e37 Made the initResourceDir method public so that we can reconfigure
the resource directory in tools.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@504 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-23 19:30:47 +00:00
Mike Thomas bde434eb88 Remove some spurious debugging.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@502 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-23 01:18:22 +00:00
Mike Thomas 25be8e02df Need to include the bundle's ident in our lookup to the resource list.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@501 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-23 01:11:29 +00:00
Mike Thomas ef15781c28 Add the ability for network resource bundles to have an index file which tells them which files they should expect to find. This turns out to be pretty useful since resources try to grab a locale-specific version first, which often fails, and then they have to grab their generic version. This allows us to bypass some of this latency when we're able to know ahead of time which resources we will have.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@500 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-22 18:34:37 +00:00
Michael Bayne 7835b083b8 Nixed some if true then true (ITTT?) stylings. Ray happiness++.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@499 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-21 11:19:51 +00:00
Charlie Groves a012977741 Need to use floating point numbers if you want floating point math
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@498 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-20 22:04:13 +00:00
Charlie Groves 14dd85bb45 Switch to fixed-delay scheduling from fixed-rate so our interval being blocked
won't cause multiple calls to calibrate.  Since a fixed-delay Interval can't be
used with a RunQueue, move the calibrate interval onto the Timer's thread and
switch to floats for the drift ratio so synchronization isn't needed around
updating it as a double.



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@497 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-20 21:05:46 +00:00
Charlie Groves c0b0b9c94a Start with no alpha so getting a paint before we're ticked doesn't blow up
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@495 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-14 21:18:54 +00:00
Charlie Groves 731c6fe082 Expose isResolved so things changing the block can decide if they should add or remove objects from it
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@494 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-14 06:30:35 +00:00
Michael Bayne 51c01493f2 Type safety, redundant case removal, other cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@490 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-05-09 11:39:45 +00:00
Charlie Groves 6029530e73 Wait till willStart to create the gleaming functions so subclasses can fill in their desired alpha ranges and so on and the huge constructors aren't needed
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@476 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-24 01:05:10 +00:00
Charlie Groves 5cca3c2fe2 Root needs to end with a slash
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@475 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-22 22:45:00 +00:00
Charlie Groves c44a63c3f4 Let us not go softly into unexplained resource failure
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@474 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-22 20:42:54 +00:00
Charlie Groves 0b5b4f41e5 Go ahead and add a toString for NetworkResourceBundle in the style of FileResourceBundle
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@473 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-22 18:34:34 +00:00
Charlie Groves 65a579c583 Log the failing URL when the security manager denies access
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@472 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-22 18:09:18 +00:00
Charlie Groves 9b20077820 Allow the min alpha to be specified in addition to the max
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@471 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-21 19:03:47 +00:00
Charlie Groves 0a5fff92d3 Don't require a SpriteManager for gleamed sprites that aren't used as sprites otherwise
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@470 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-19 23:05:47 +00:00
Charlie Groves b01c773d20 Generalize SceneObjectTips into SceneObjectIndicators to allow things other
than tooltips to be painted for interesting objects.



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@469 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-19 23:05:04 +00:00
Charlie Groves ab5729654c Keep the drift ratio between .01 and 10 for timer siestas and fiestas
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@468 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-18 19:01:44 +00:00
Eric Woroshow 81c5760863 Added an AL context. Provide a method in the sound manager to preload sound data.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@459 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-04-07 18:57:41 +00:00
Andrzej Kapolka 10b2587fba I don't remember putting that there!
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@455 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-21 02:02:09 +00:00
Andrzej Kapolka fcb5fa200c Removed dependency on JME for OggStreamDecoder (use JOrbis
directly).


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@454 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-21 02:00:20 +00:00
Charlie Groves 5a654ebd99 Don't compound the problem of the timer going into the past by sticking the drift at 0 for 5 seconds
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@445 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-13 01:27:04 +00:00
Charlie Groves 2f411f5c2d Expose the xmlization of ObjectInfo for use by other RuleSets and Writers
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@443 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-12 06:10:25 +00:00
Charlie Groves f3c2097498 Cancel the calibration interval and start a new one in reset to prevent calibrate calls coming immediately after the reset from producing a crazy drift
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@442 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-12 00:06:00 +00:00
Dave Hoover d349c1f91a Pull out our drift range to constants, and tighten it up a little bit.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@441 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-11 18:16:16 +00:00
Dave Hoover 3d4241540f Let us clear our CalibratedTimer's memory about drifts we've seen.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@440 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-11 18:12:21 +00:00
Dave Hoover 381bfd239b Have CalibratingTimer remember the largest drift it's seen, and let us get at that
via our FrameManager.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@439 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-10 16:58:45 +00:00
Charlie Groves 3466303b91 Log what's actually going on in the calibration in one final attempt to figure out what's going wrong here before ripping it out and going back to business as usual
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@438 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-08 00:35:55 +00:00
Michael Bayne 55ac76bd0b Let's have a header on that file.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@437 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 22:17:40 +00:00
Charlie Groves 017a81072f Rollback yesterday's commit to use a calibration interval since we're actually pretty good about only having the ticker call getElapsed. It actually appears that the problems arise from the time between calibrations being influenced by timer time. Since we're explicitly trying to work around someone jacking their timer to several times normal speed, relying on it to decide when to calibrate is a bad idea as it can lead to tiny, quick calibrations with varying numbers of underlying millis. Instead, schedule calibrations with an Interval on the AWT thread since that will be run based on System.currentTimeMillis and hope the third time's the charm.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@435 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 21:51:04 +00:00
Mike Thomas 8a10f090da Apparently only yohoho ever uses the runtimeadjust stuff, so we don't care about backwards compatibility and this naming scheme is better. We now have ClientImageManager and ImageManager.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@434 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 18:56:26 +00:00
Mike Thomas f00ff51a7b Split the runtime-adjustment functionality of ImageManager out. In order to preserve backwards compatibility, the complete functionality including runtime-adjustment can be found in ImageManager which now extends BaseImageManager. The bulk of functionality is now in BaseImageManager and anyone who wants an image manager without the RuntimeAdjustment bits (it uses ClientPrefs and thus isn't friendly in server-land) should use that directly.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@433 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 18:31:04 +00:00
Charlie Groves 9c3a7e2904 Calibrate every 5 seconds instead of every 1000 calls. When many things are being animated, the timer will get a ton of calls and the variation in the number of millis elapsed per timer time may be leading to unwanted variations in the drift value.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@432 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-03-06 01:24:21 +00:00
Charlie Groves 5a569a2fa3 Adjust _startStamp by the amount of drift since the previous call to elapsed rather than adjusting the entire elapsed time.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@429 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-27 19:15:08 +00:00
Charlie Groves c72fea4411 Perf isn't yielding nanos, so it needs to be divided by the _milliDivider to get millis
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@425 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-20 22:56:00 +00:00
Charlie Groves 4c002c5682 Looks like much of the speedmodding in Puzzle Pirates comes from futzing with
the speed of the system timer, but that leaves System.currentTimeMillis alone.
If the precise timer is moving way faster or way slower than currentTimeMillis,
tack our timing to currentTimeMillis.  This will make timing precision blow,
but that's what you get for cheating. 



git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@424 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-02-20 02:28:57 +00:00
Charlie Groves 6451cfffae Don't update the bundle until we're done iterating over it. Fuck if I know how this worked up until now
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@405 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-31 22:02:01 +00:00
Dave Hoover cc1a550a55 Oh, and roll back the compiled mac ones, too.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@402 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-18 19:51:28 +00:00
Dave Hoover bed5271a28 Let's roll back my last change to Unsafe and do this differently; my shared
object compiled on my laptop that I checked in blows up on my desktop. Yay
for worrying about where you compile. So instead, because we only needed to
call init() to setup jvmpi for garbage collection, only call that if we
touch that functionality so we can keep the same old compiled code kicking
around, nobody that consumes this needs to change things, etc.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@401 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-18 19:49:48 +00:00
Charlie Groves 611098c7d6 Mac version of Dave's libunsafegc
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@400 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-17 23:40:42 +00:00
Dave Hoover 406b2a4662 Break Unsafe apart into Unsafe and UnsafeGC, the latter having only the
things to play with garbage collection. The gc stuff required JVMPI which the
"server" jvm doesn't have, so poor saps like me with two processors and gobs
of ram needed to hack things  to run yohoho & force java to run with the 
"client" vm since it used stuff out of unsafe (but not the gc stuff)

Still need to hit up people to build me the shared objects on other platforms,
but the linux ones are there & working.


git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@398 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-17 23:10:46 +00:00
Dave Hoover f91b7714a5 Remove unneeded casts.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@397 ed5b42cb-e716-0410-a449-f6a68f950b19
2008-01-17 01:26:05 +00:00