Michael Bayne
dc15ffc36f
Have to supply the old value now when constructing an
...
AttributeChangedEvent by hand.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2511 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 22:32:20 +00:00
Michael Bayne
43edd884c0
Added the necessary machinations to make getOldValue() and getOldEntry()
...
work on the server.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2510 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 22:32:04 +00:00
Michael Bayne
99fa7fd6ff
renderMedia() -> paint().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2509 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 20:48:51 +00:00
Michael Bayne
357e17d7c7
Because we cleverly do nothing in paint() if there are no dirty regions,
...
we have to go out of our way to let the abstract media managers know when
tick() is all done and paint() *may* be called. This way they can properly
clear out their tick stamps because they know that no more media fooling
around will happen between the call to willPaint() and the call to paint()
(which used to be called renderMedia() but is now paint() to remain in
line with all the other places were we tick() and then paint()).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2508 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 20:48:38 +00:00
Michael Bayne
6cff845a6c
Use our own thread to queue up frame ticks rather than the standard Java
...
Timer which does undesirable things like suffer from 20 ms granularity on
Linux and rapid fire multiple invocations of our timer task if it has
fallen behind.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2507 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 06:42:50 +00:00
Michael Bayne
9372df6ff0
Render the additional performance metrics when such are activated.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2506 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 06:34:55 +00:00
Michael Bayne
580fdba83b
Revamped animation observation.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2505 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 00:45:02 +00:00
Michael Bayne
99127e4ce0
Revamped sprite observation and added support for being notified if a path
...
is cancelled.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2504 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 00:44:36 +00:00
Michael Bayne
3cfccff0c6
The revamp that made me nervous about our rendering performance but turned
...
out to be not at all related.
Out with the wacky system of events that require the observers to
instanceof to the high heavens. Now we just call sensible methods directly
on the observers who care and not on those who don't.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2503 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 00:43:54 +00:00
Michael Bayne
83d7506e0f
Utility class for tracking trailing averages.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2502 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-30 00:38:35 +00:00
Michael Bayne
b2cbd63be2
Display FPS in the media panel where we have tight control over dirtying
...
and repainting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2501 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-29 18:15:10 +00:00
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
82d3a89e97
Further tweaks though this time they are functionally equivalent.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2499 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 23:33:43 +00:00
Michael Bayne
c045a84703
We want to compare the origin of b not its left and right tiles.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2498 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 22:21:20 +00:00
Michael Bayne
2a909b772e
When we're resized, delay our rethink until the next tick so that the view
...
bounds are properly updated for the rethink.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2497 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 21:46:33 +00:00
Michael Bayne
4d7993b59f
Only delay repaint on setBounds() if we end up queueing up blocks as a
...
result.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2496 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 21:10:19 +00:00
Michael Bayne
98d6d2f086
Broke out influential bounds computation into a method that can be
...
overridden.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2495 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 21:02:54 +00:00
Michael Bayne
abec16cbc1
Assign an ordering based on y position in the absence of any other
...
ordering.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2494 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 20:53:58 +00:00
Michael Bayne
0165cca20a
Make a note of a potentially non-intuitive return value.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2492 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 20:41:13 +00:00
Michael Bayne
da3ec5f6e4
Report unexpected visibility more sensibly.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2491 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 20:28:45 +00:00
Michael Bayne
120c2643ef
Added grow() and a Log class.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2490 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 20:27:52 +00:00
Michael Bayne
508e389678
Make the bounds of just our objects available as well.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2489 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 20:27:35 +00:00
Michael Bayne
8ce7d7bc69
Slap a big fat random number on the end of our cache directory to avoid
...
annoyances when we run multiple clients for testing.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2488 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 18:21:47 +00:00
Michael Bayne
7c5d0f275e
Document that little feller.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2487 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 18:12:09 +00:00
Michael Bayne
831539b09d
How simple! If our bounds change, delay a repaint until we have all of our
...
blocks resolved. In the future, we could attempt to resolve the blocks
that are needed to repaint the visible view first and allow repaint as
soon as those blocks are resolved.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2486 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-28 18:08:57 +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
201ee0acf3
Don't log the whole message, just the class.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2484 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 07:53:31 +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
a26d42549f
Enhanced error logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2482 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:43:51 +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
57c805d929
Component bundles are all fast.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2479 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 06:35:28 +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
a54e01a0fd
Provide estimated travel time.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2473 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 03:53:41 +00:00
Michael Bayne
3962a0fa77
Allow our resource cache directory to be configured.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2472 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 03:27:33 +00:00
Michael Bayne
e1ba8eeeec
Allow others to know what our cache directory is.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2471 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 03:27:21 +00:00
Michael Bayne
e1b4198d8f
Let's just report the type of message.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2470 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-27 01:32:08 +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
b907bc02b0
Ensure that we always eventually claim to be resolved.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2467 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-26 02:16:18 +00:00
Michael Bayne
db1a0f59c9
Don't constrain tooltips to the view bounds because they won't repaint
...
properly and in happy virtual land it's not so necessary any longer.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2466 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-26 00:48:47 +00:00
Michael Bayne
dac610797e
Added a means by which the default base tileset can be set.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2465 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 22:26:25 +00:00
Michael Bayne
d86ddce45d
More delayed block loading improvements: resolve fewer blocks, use the
...
same mechanism for including and excluding blocks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2464 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 22:13:14 +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
cca2a9cd16
Beginnings of support for asynchronous scene image data resolution.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2462 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 18:22:52 +00:00
Michael Bayne
a03ad10f8d
Beginnings of support for asynchronous resolution of scene image data.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2461 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-04-25 18:22:26 +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