Michael Bayne
83cdc0b0fb
Canned support for FPS display by the frame manager; it just can't manage
...
the dirty regions effectively.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2500 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-29 18:14:37 +00:00
Michael Bayne
72768a3a9e
More synchronization is needed! The dangers of multithreaded programming.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2485 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 17:38:06 +00:00
Michael Bayne
5c03adbb72
Added support for temporarily disabling image and tile cache flushing.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2483 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 07:33:15 +00:00
Michael Bayne
21889f5a9e
Trimmed tilesets are all fast. This should ensure that it's possible to
...
save the tileset image in fast format before doing so because the set of
formats for which we support trimming is slightly larger than those for
which we support saving in fast format. We don't use such formats
presently, so I'll temporarily punt.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2480 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:38:15 +00:00
Michael Bayne
b84f62e35d
If our image has been converted to fast format; load it up fast and propah!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2478 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:35:09 +00:00
Michael Bayne
cab6cfb131
Convert images to "fast" images if possible. Also fixed a bug where it
...
wasn't cleaning up properly if it failed to generate a bundle. Plus the
error reporting is all much better.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2477 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:34:43 +00:00
Michael Bayne
65106d8815
Generate better error messages if we fail.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2476 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:33:40 +00:00
Michael Bayne
8973ca0d8c
Make ImageDataProvider responsible for loading the actual image instead of
...
returning an ImageInputStream.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2475 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:33:11 +00:00
Michael Bayne
a4e09831c5
The amazing fast image loading extravaganza. Images load in 1/4th the time
...
and generate almost zero garbage during the loading process (unlike the
ImageIO loaders which practically generate an entire image worth of
garbage during the load).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2474 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:32:15 +00:00
Michael Bayne
661d7598ed
Commented out verbose logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2469 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 01:30:25 +00:00
Michael Bayne
055bd6a642
Factored out the flip-buffer versus volatile image back-buffer code into
...
start-time selectable implementations. Modified back buffer to use
BufferCapabilities.FlipContents.COPIED which should do what we need in
terms of providing us with the current frame's contents on which to paint.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2468 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-26 17:56:26 +00:00
Michael Bayne
8bab0bd281
Added useful debug logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2463 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 22:12:14 +00:00
Michael Bayne
2051770c91
Synchronize access to the tile cache so that we can load tiles on other
...
threads.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2460 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 18:21:49 +00:00
Michael Bayne
90391aa69d
Synchronize access to the image cache so that we can load images on other
...
threads.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2459 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 18:21:28 +00:00
Michael Bayne
2f80c9b057
Removed obsolete image loaders.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2456 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 15:51:49 +00:00
Michael Bayne
ae0376d4ec
Removed a bunch of obsolete stuff.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2455 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 15:51:34 +00:00
Michael Bayne
1274fbb7c0
Let's inform the derived classes of the delta rather than the new _vbounds
...
upper left which is something they're already much more likely to be
making use of directly.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2443 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-22 18:12:40 +00:00
Michael Bayne
1fc693523d
Add constructor that takes bounds. We love the bounds.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2438 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-20 04:52:33 +00:00
Michael Bayne
1cb3d1edb5
Added floorDiv().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2432 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 22:28:28 +00:00
Michael Bayne
e6a1ebbd80
We need to recreate our back buffer if our frame's bounds change.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2426 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-19 01:04:29 +00:00
Michael Bayne
d5701962a3
The big fat bernie revamp! Er, big fat miso revamp rather:
...
- Combined SceneViewPanel and IsoSceneView into one happy panel.
- Ditched the DisplayMisoScene notion; the new MisoScenePanel now manages
resolved scene information (like base, object and fringe tiles) itself
so that it can...
- ...support scrolling scenes by keeping blocks of resolved base, fringe
and object information loaded only for what is potentially visible
rather than for the whole scene.
Other things were surely cleaned up or broken in the process to keep a
keen eye out.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2413 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-17 19:21:17 +00:00
Michael Bayne
025cb91668
Ensure that any media inserted between the call to tick() and the call to
...
renderAllMedia() is ticked in all circumstances and ticked exactly once.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2411 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-15 21:27:22 +00:00
Michael Bayne
7aeae0d4c3
Change removeAnimation() to abortAnimation(); that's what is happening.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2410 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-15 00:39:20 +00:00
Ray Greenwell
3bdeed559f
- Do time math with the last timestamp rather then precomputing the next
...
timestamp so that we can switch frame rate on the fly.
- added setLength() to use a subset of the sequence
- added setResetOnInit() so that the sequencer can be swapped into a new
animation without being reset if desired.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2409 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-14 20:36:16 +00:00
Ray Greenwell
c0f4ed2777
progress towards duty feedbackers
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2408 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-14 17:16:23 +00:00
Michael Bayne
98e48001dc
Added bound().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2405 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 02:06:35 +00:00
Michael Bayne
a8c6d62913
Immediately update our scene location when we are requested to track a
...
pathable.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2404 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-12 01:26:29 +00:00
Michael Bayne
fca168018e
Don't freak out if we can't load our source image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2400 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-11 18:48:05 +00:00
Michael Bayne
9c113eb8dc
Not to choke if we get passed a null image.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2394 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-09 22:02:20 +00:00
Michael Bayne
6ea4264eb4
If we fail to load an image, create a blank one in its stead.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2393 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-09 22:02:05 +00:00
Ray Greenwell
46b8aace97
Don't log a bunch of crap for sounds that are missing during a LOCK
...
unless verbose logging is turned on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2392 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-08 20:30:44 +00:00
Ray Greenwell
77633366cc
Handle not finding a music player for a song gracefully.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2389 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-08 01:46:16 +00:00
Michael Bayne
8663535d5a
Exclude the experimental music players.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2382 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-06 04:36:01 +00:00
Ray Greenwell
728ddcf575
only log that the queue is full (and the full damn contents of the queue)
...
when verbose logging is on.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2381 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 20:48:04 +00:00
Michael Bayne
628bc34eef
Make sure we have clips before we try to pick one at random.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2379 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 19:00:28 +00:00
Ray Greenwell
02081105c8
cut down on the amount of logging we do for missing sounds
...
(unless verbose logging is turned on.)
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2378 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 03:38:41 +00:00
Michael Bayne
34528419a0
We'll be needin' to use them tileset global colorizations if we got 'em.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2377 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-05 01:52:58 +00:00
Ray Greenwell
2c4c2d6b92
- only play the default sound for missing sounds if verbose sound event logging
...
is turned on.
- Expire PLAY requests if they are not processed within 400ms.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2376 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-04 22:34:59 +00:00
Michael Bayne
ad266a629e
Added ability to fetch a tileset with specific colorizations.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2375 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-04 19:36:21 +00:00
Michael Bayne
1942314cc1
Log our validations when debugging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2372 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-02 03:59:17 +00:00
Michael Bayne
1abea4cf12
Report the file we actually tried to load from the jar just for kicks.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2371 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-01 19:33:07 +00:00
Michael Bayne
cb6d73e98c
needsPaint() will only be called by the FrameManager *after* it has just
...
called tick(), therefore we don't need to incorporate _tickPaintPending
into our determinations. Additionally, we need to clear _tickPaintPending
if we return false from this method because we won't get painted in that
case and won't clear it in paint().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2369 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-01 03:38:03 +00:00
Michael Bayne
927be852bd
Added support for providing colorization assignments when fetching tiles.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2367 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-01 02:16:28 +00:00
Michael Bayne
fe88ce14a6
Checkus sanitorium.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2349 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 02:19:56 +00:00
Michael Bayne
c69a7b0f7c
Allow the frame to be constructed with a graphics configuration.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2346 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-30 00:00:00 +00:00
Michael Bayne
9c54590c92
We're not generating that colorization for our health. We need to return
...
it to the caller!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2345 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-29 02:30:14 +00:00
Michael Bayne
253079107c
Make object base dimensions available without having to instantiate an
...
object tile.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2328 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-26 00:18:55 +00:00
Michael Bayne
0bd5d6728c
Whoops, left in some debug logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2326 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 23:06:51 +00:00
Michael Bayne
0b0757b98c
Fixed up the goddamned repaint fuckola. Fucking pain in the ass, all this
...
Swing, AWT and frame manager interaction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2325 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 23:05:58 +00:00
Michael Bayne
b66e0d2584
Keep track of whether or not anything was painted each frame and avoid the
...
extra effort of copying the back buffer to the screen if nothing actually
changed.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2322 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-03-25 19:06:54 +00:00