Ray Greenwell
a323d157dd
UniformTileSets no longer need to have their tileCount set, they will
...
figure it out from their width/height compared to the source image's
width/height.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2573 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-13 21:33:58 +00:00
Michael Bayne
c0aacd5f41
Provide the colorization index when asking for an object colorization.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2572 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-13 02:16:21 +00:00
Ray Greenwell
83a4d141f9
added lineIntersection()
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2571 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 05:22:34 +00:00
Michael Bayne
45033c8623
Use a much smaller scene block size which smooths out block resolution and
...
generally makes everything happier.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2569 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 02:04:16 +00:00
Michael Bayne
7f08d36ce7
Up the default tile cache to 2 megs.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2568 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 02:03:53 +00:00
Michael Bayne
8ca388fb7e
Implemented a debugging view that shows when scene blocks are being
...
resolved; adjusted influential bounds based on new strategy for scrolling
around and resolving blocks.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2567 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 02:03:31 +00:00
Michael Bayne
48a102de5a
Allow scene block resolution to be suspended.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2566 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-12 01:53:19 +00:00
Michael Bayne
c93802c455
Off with the verbose logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2565 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-10 01:05:33 +00:00
Michael Bayne
98e3e530da
Remove verbose logging.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2563 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 18:40:07 +00:00
Michael Bayne
d4c4596403
Build our new unsafe library (on Linux at least) and some other random
...
viztool crap that doesn't really matter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2561 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 03:24:12 +00:00
Michael Bayne
cde14e4bfa
Ignore the generated .def files.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2560 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 03:22:39 +00:00
Michael Bayne
9a5bea62fd
Possibly working code to cross-compile Windows native DLL. Whee!
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2559 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 03:22:16 +00:00
Michael Bayne
286cd5019e
Oh god, unresolved blocks are again unpassable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2558 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-09 01:12:06 +00:00
Michael Bayne
fa5c8cc6a3
Use our native (select()-based) sleep() on Linux to achieve 10ms
...
granularity instead of 20ms which is what we get from Thread.sleep() which
probably uses the less than aptly named nanosleep() which seems to give
about that granularity.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2557 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 21:26:27 +00:00
Michael Bayne
ff691ca88c
There's no two ways about it. This shit is definitely not safe.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2556 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 21:25:20 +00:00
Michael Bayne
704cee77d1
No more regions of interest, now we follow pathables.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2555 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 16:10:50 +00:00
Michael Bayne
fac7c3cb75
The frame manager may decide not to paint us if needsPaint() returns
...
false, but we still need to call willPaint() after *every* tick, so we
have to do that in needsPaint() where we can be sure it will get called.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2554 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 05:46:45 +00:00
Ray Greenwell
4d267ebc8c
Allow specification of a background image to tile the background
...
of the panel in an aligned manner.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2553 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-08 04:52:24 +00:00
Ray Greenwell
1387c9f08b
Clarified documentation somewhat. It's too hot today.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2552 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 19:47:02 +00:00
Ray Greenwell
b545d1ff05
Added moveDirection() which can move a point in the specified
...
screen direction.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2551 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 19:41:57 +00:00
Michael Bayne
684102f32e
Use mirages in tileImage*.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2550 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 19:14:38 +00:00
Michael Bayne
f1bcf698db
Rather than allow an Error to be thrown, we just log a warning and go on
...
about our business.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2549 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 05:31:09 +00:00
Ray Greenwell
e174e71b8a
Subsumed tileImageAcross and tileImageDown into the new tileImage.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2548 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-07 01:48:27 +00:00
Ray Greenwell
61ce868a11
Register the "resource" url handler with a factory instead of using
...
the system property. The factory works under JWS, but is a little
worrisome because you can only have one factory per JVM.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2547 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-06 18:48:18 +00:00
Michael Bayne
061e27d54c
Fixed up cluster object handling; wasn't doing the right thing on
...
reconnect and needs to know the name of the field to listen for to avoid
issuing rapid-fire subscription requests.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2546 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-06 00:21:59 +00:00
Ray Greenwell
b9fdc60650
added a loadTileSet() that takes an ImageProvider,
...
added a way to register TileSets.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2545 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-05 22:34:48 +00:00
Michael Bayne
456dc57129
Moved the creation of the shutdown hook into the same static block that
...
creates the temp cache directory so that it is only registered once even
if multiple resource managers are created by the JVM (which happens in ant
builds).
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2544 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-05 18:02:37 +00:00
Michael Bayne
56df0d29f5
Let's actually use the flip buffer capabilities that we go to such trouble
...
to create.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2543 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-05 01:41:57 +00:00
Michael Bayne
baf4873fa6
Not to freak out if we can't get a graphics to lay out our FPS label.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2542 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-04 23:28:18 +00:00
Michael Bayne
21210eae62
Documentation clarification.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2541 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-04 18:50:23 +00:00
Ray Greenwell
7f8ef8f01e
Use FileUtil's deleteRecursive()
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2540 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:51:13 +00:00
Ray Greenwell
c3737ca73f
Register a shutdown hook to destroy the resource cache directory when
...
the JVM exits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2539 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:45:36 +00:00
Ray Greenwell
9643db4632
Use RunAnywhere.isLinux() to determine if we should skip draining.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2538 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:13:04 +00:00
Michael Bayne
7457e46374
MacOS safety project, phase 1.1.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2537 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-03 00:12:12 +00:00
Michael Bayne
352b3d3d6d
We need to dispose of the graphics that we obtain from getDrawGraphics().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2536 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:54:56 +00:00
Michael Bayne
2d0897ed4b
Default to flip-buffer rendering on the MacOS because the volatile back
...
buffer approach don't work.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2535 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:53:55 +00:00
Michael Bayne
df50d9fb0d
Only do the Windows copyArea() workaround on Windows because it crashes
...
the MacOS JVM (though the MacOS JVM has the same fricking bug, it's just
that the workaround doesn't "work").
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2534 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:49:57 +00:00
Michael Bayne
daa9c8ee0e
We can use the raw images here because we eventually splat all fringe
...
tiles into a composited image which has been prepared for display.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2533 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:33:30 +00:00
Michael Bayne
55e84b0ae4
We can use the raw image here because we only use its dimensions.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2532 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:32:56 +00:00
Michael Bayne
1694881ac2
We can use the raw images here because we're just processing them into
...
other raw images.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2531 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:32:37 +00:00
Michael Bayne
77cd7f7efe
Renamed the methods that return raw tile images and added fat warnings not
...
to use these unless you're doing low-level image processing and will
eventually stuff the data into a prepared image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2530 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:32:10 +00:00
Michael Bayne
6669e39a8e
Added other forms of getPreparedImage();
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2529 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 23:09:28 +00:00
Michael Bayne
c7765a9862
Added getPreparedImage().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2528 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 22:59:20 +00:00
Ray Greenwell
af764f57c7
Added a constructor that takes MisoSceneMetrics.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2527 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 21:50:22 +00:00
Michael Bayne
e9b0df1751
Scratch that, reverse it. We just have to recreate our graphics objects,
...
not the whole image.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2526 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 18:46:42 +00:00
Michael Bayne
bd18c4cbb1
If a block finishes resolution after it's already become visible, repaint
...
its bounds immediately rather than waiting for the remaining queued blocks
to be resolved.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2525 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 18:12:34 +00:00
Michael Bayne
57ee4d56c8
Let's have some debug logging so that we can investigate potential block
...
resolution wackiness.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2524 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 18:09:56 +00:00
Michael Bayne
7c7db998ac
With this fix, and the new JVM, I think full screen actually works now.
...
It's a miracle!
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2523 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 18:03:17 +00:00
Michael Bayne
02bd2ade00
We just flip flop back and forth on this one: now non-resolved tiles *are*
...
traversable so that if a sprite claims to have relocated somewhere outside
your resolved scene bounds, we'll just bee line them to their new
location. Since the user can never click outside their resolved view
bounds, we won't ever compute an invalid path for them. Joy.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2522 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 15:13:20 +00:00
Michael Bayne
e6126a4787
If FPS display is on, dirty it properly when the view scrolls.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2521 542714f4-19e9-0310-aa3c-eee0fc999fb1
2003-05-02 15:11:51 +00:00