Files
Igor AherneandClaude Fable 5.2 0fb5f1609c Omni-Texture: a picture hides in half a second; a lighter viewport; faster xatlas
Hiding a repaint, showing it again, its edge fade and taking one off write the
one model the prop shows next instead of one for every later repaint, and the
worker works the repaints out ahead on threads: about half a second for any
repaint once it is ready, where the oldest of two dozen took up to 25 s. The
models come out byte for byte as before. The worker is made ready as a result
comes on screen and as the pointer comes to its pictures - not beside a job,
nor when memory is short.

A click anywhere on a picture hides it or shows it again; the edge fade is for
the repaint clicked last. Settings has "Faster 3D view: no anti-aliasing", off
unless chosen.

The view stays on the material picked when "Render Masked" brings its model; a
brush dab draws only the triangles under the stroke, the lights turn at 30
frames a second, and pictures pointed at no longer pile up on the graphics
chip.

xatlas 0.0.11+spellcast3d.2 and cumesh 0.0.1.post7 grow their charts faster;
the atlases are unchanged.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-27 04:33:37 +01:00

34 lines
1.1 KiB
JavaScript

// How this browser draws the 3D view, as far as the artist chooses (Settings > Advanced): kept in this browser, as
// the animations and the tooltips are.
//
// "Faster 3D view" draws the model without anti-aliasing: its edges are a little jagged, and the graphics chip that
// draws the page has about a third less to do per picture and holds less memory - what a processor's built-in
// graphics behind a high-density screen needs. Off unless chosen.
const PREF_KEY = 'spellcast3d.plainEdges';
let plain = null;
function readPref() {
try {
return localStorage.getItem(PREF_KEY) === 'on';
} catch {
return false;
}
}
/** The 3D view is drawn without anti-aliasing. */
export const plainEdges = () => (plain ??= readPref());
/**
* Keeps the choice (for this browser; for this page only when the browser keeps nothing). A 3D view follows it
* from the next page load on: its canvas is made with anti-aliasing or without.
*/
export function setPlainEdges(on) {
plain = !!on;
try {
if (plain) localStorage.setItem(PREF_KEY, 'on');
else localStorage.removeItem(PREF_KEY);
} catch { /* this page keeps it */ }
}