Commit Graph

  • 8a15093147 The images are in sdf A.Olokhtonov 2024-05-20 08:26:41 +0300
  • 903660adbc Marginally better grid level transitions A.Olokhtonov 2024-05-19 16:16:17 +0300
  • 5aa29b18c0 Fix follow mode by separating canvas move and zoom events. Touch devices are TODO! Aleksey Olokhtonov 2024-05-12 13:49:17 +0300
  • 01560389af Fix predrawn curves having zero width Aleksey Olokhtonov 2024-05-12 13:08:32 +0300
  • 90f0beb4f9 Undo is back in! Aleksey Olokhtonov 2024-05-12 12:44:58 +0300
  • e2ba3bb1c2 Make zoom animation use delta time Aleksey Olokhtonov 2024-05-12 10:35:07 +0300
  • bf2eace6fe Grid background pattern A.Olokhtonov 2024-05-10 15:06:29 +0300
  • eafe860990 Zoom without the mousewheel by holding down Z A.Olokhtonov 2024-05-10 13:33:00 +0300
  • eb66ffbcad Significantly improve stroke smoothing and pressure handling. "Fix" issue with underallocation of WASM memory by doubling the size A.Olokhtonov 2024-05-09 15:41:34 +0300
  • 30559b0381 The dots are now zoomable A.Olokhtonov 2024-05-06 01:28:52 +0300
  • c13e5a6848 Smooth zooming A.Olokhtonov 2024-05-05 01:09:15 +0300
  • ee42e400c4 Dots pattern with fancy fadeout A.Olokhtonov 2024-05-05 00:49:07 +0300
  • 807a1d0c03 More betterer picker icon. Hide dom brush when in picker mode A.Olokhtonov 2024-05-04 19:01:04 +0300
  • 07bb47b6dc Dynamic cursor that shows size and color of the brush. Background pattern scaffolding A.Olokhtonov 2024-05-04 18:50:44 +0300
  • 5552dc11a3 Make cursor reflect the size of the brush. Doesn't work when the brush size is > max allowed cursor size though A.Olokhtonov 2024-04-21 18:18:38 +0300
  • e4a10ebf30 Make color picker actually change the active color A.Olokhtonov 2024-04-20 23:10:55 +0300
  • 68c892ba5f Color picker: picks colors! They don't get used though A.Olokhtonov 2024-04-20 22:48:07 +0300
  • 48e9dd9a3e Remove stupid try catch from webgl_draw A.Olokhtonov 2024-04-08 01:27:48 +0300
  • 221e2a5aed Fix bvh fullnodes returning full buffer instead of tv_data. Skip handling of empty strokes A.Olokhtonov 2024-04-08 01:25:34 +0300
  • c3f66d966c Determinitstic zooming A.Olokhtonov 2024-04-06 13:57:40 +0300
  • acdbf73a26 Add new strokes to fullnodes. Strokes appear one too late though A.Olokhtonov 2024-04-01 01:31:33 +0300
  • 6d9791d3e0 Cache full stroke lists in BVH levels (massive speedup!). Remove "line_threshold" array, since it has very little effect. A.Olokhtonov 2024-04-01 00:28:04 +0300
  • f6573e7bb9 Correcty complute total point count. Only call glClear once workers have finished LOD. Only allow next draw() call after we finished rendering frame A.Olokhtonov 2024-03-28 14:19:49 +0300
  • c5ad40f739 Update README A.Olokhtonov 2024-03-28 11:36:38 +0300
  • 4f84509b16 Multithreading works! Kinda sorta (slows down in chrome, out of bounds accesses on phone) A.Olokhtonov 2024-03-27 00:46:06 +0300
  • 2c01d315d6 A small test WASM module to demonstrate how to use shared memory and run multiple threads in WASM without Emscripten A.Olokhtonov 2024-03-24 23:30:35 +0300
  • e949860279 Change extracts of pressure byutes to a f32x4_make. Change andnot masking to a bitselect. Rename readme.md to readme.txt to hopefully fix gitea formatting A.Olokhtonov 2024-03-23 12:20:10 +0300
  • 37ff1e55bc Oops, actually enable SIMD A.Olokhtonov 2024-03-22 13:34:15 +0300
  • 84a5859541 SIMD version of rdp_find_max. 16->12ms cpu frametime firefox, 16->9ms chrome A.Olokhtonov 2024-03-22 13:32:54 +0300
  • 6f78c0ae21 AoS -> SoA for point coordinates A.Olokhtonov 2024-03-21 23:36:23 +0300
  • 58f2a60295 Fix wrong wasm allocation, remove unused js LOD code, take radius of stroke into account when doing LOD, reduce EPS for LOD A.Olokhtonov 2024-03-17 15:43:25 +0300
  • 40dd278f21 Improved shader (thanks BYP!) A.Olokhtonov 2024-01-31 01:55:07 +0300
  • 6f19e6c954 Uneven capsules (and a very naive shader) to draw getter variable-width lines A.Olokhtonov 2024-01-31 01:06:10 +0300
  • dfecad2c99 Fix strokes being added to storage even when skipped by SN logic aolo2 2024-01-13 23:11:09 +0300
  • 704c833c16 First working draft of pressure hanlding aolo2 2024-01-13 22:19:50 +0300
  • 71f1016a40 Store WASM-processed data in WASM memory aolo2 2024-01-13 20:07:06 +0300
  • 8abe88373f Skip copying out segments and segments_from. Use wasm_points and wasm_ids as is A.Olokhtonov 2024-01-13 14:45:08 +0300
  • 3bf812df39 Move point writes to WASM, already a lot faster!!!! A.Olokhtonov 2024-01-13 14:26:27 +0300
  • c9d1706b6e Fix final (???) WASM issue A.Olokhtonov 2024-01-13 13:52:59 +0300
  • 1960bdebe9 LOD generation has been wassembled! (a little borked for now though) A.Olokhtonov 2024-01-13 04:18:57 +0300
  • cf11f6c701 Successfull sum function in wasm :D A.Olokhtonov 2024-01-13 00:59:33 +0300
  • 28fec7f306 Redraw HTML on canvas move, first draft of wasm LOD core A.Olokhtonov 2024-01-12 02:39:23 +0300
  • 4b5b8db053 Update README A.Olokhtonov 2024-01-11 03:09:25 +0300
  • ab7545918b Fix state.me not being set when joining new desk A.Olokhtonov 2024-01-11 03:08:30 +0300
  • 7555de10bf Long touch to open color picker details A.Olokhtonov 2024-01-11 02:14:03 +0300
  • 08ba8a7687 Fix GC pauses! A.Olokhtonov 2024-01-11 01:56:28 +0300
  • cc800c1ffe Fancy-shmancy Open Color (TM) color pallete A.Olokhtonov 2024-01-11 00:44:26 +0300
  • 8bbcfb616f JOIN event, send online info for users in init message A.Olokhtonov 2024-01-10 01:47:56 +0300
  • 99bd99a465 Follow and unfollow players like in Figma A.Olokhtonov 2024-01-10 01:17:41 +0300
  • ee1d1471f4 Pretty(er) player cursor: bright colors and an actual icon A.Olokhtonov 2024-01-09 22:47:57 +0300
  • d8a5cd3fca Draw player pointers as colored squares with html A.Olokhtonov 2024-01-08 21:31:14 +0300
  • 1f983f3389 Fix multiplayer, add mouse wheel panning A.Olokhtonov 2024-01-08 19:38:59 +0300
  • c893a73ec5 You can draw once again! A.Olokhtonov 2024-01-07 18:08:34 +0300
  • 847fb70381 Don't repeat points segment points. Introduce "tv" (typedvector) A.Olokhtonov 2024-01-07 15:14:10 +0300
  • 9bbab32369 Try to speed up the LOD calculation with a cache (kinda succesfull, but not really) A.Olokhtonov 2023-12-28 02:11:46 +0300
  • a60c3d1948 Recompute LODs and instance data on demand - ??? - it works??? A.Olokhtonov 2023-12-27 03:31:40 +0300
  • 2d88b57dca Fix off-by-factor-of-2 in the vertex shader A.Olokhtonov 2023-12-26 02:46:57 +0300
  • 248501e50f Remove recursive allocations from process_rdp Use rgba_u16 textures for rgb and, most importantly, W (stroke width) A.Olokhtonov 2023-12-26 02:34:43 +0300
  • 31a0b0113a Prototype: separate per-quad data using instanced rendeding and per-stroke data using a texture A.Olokhtonov 2023-12-21 01:45:09 +0300
  • 1438b0ad73 LODs work! Need to fix that memory usage though A.Olokhtonov 2023-12-20 02:26:14 +0300
  • 60fc48b1e7 Fix dynamic draw to use indexed, and thus the same shader as main A.Olokhtonov 2023-12-08 01:34:19 +0300
  • fdca3e6b07 Fix epsilon calculation for RDP A.Olokhtonov 2023-12-08 01:05:50 +0300
  • 7b53c7215e Fix predraw artifacts by making the lines too fat at far zoomout A.Olokhtonov 2023-12-08 00:16:36 +0300
  • 72eedf9b48 Fix dynamic data A.Olokhtonov 2023-12-06 02:19:35 +0300
  • 24222f9565 Fix wrong sort order for indices A.Olokhtonov 2023-12-05 01:21:28 +0300
  • cca3b4cd5d Fix the depth prepass artefacts A.Olokhtonov 2023-12-05 01:09:57 +0300
  • a991cf3247 BVH construction and modification A.Olokhtonov 2023-12-04 22:52:59 +0300
  • 1691bd07ae Milton blackboard import aolo2 2023-11-27 15:25:24 +0300
  • 6be8ba7823 Add readme A.Olokhtonov 2023-11-21 16:33:13 +0300
  • 7752e41bf5 Separate CPU and GPU timings in debug window A.Olokhtonov 2023-11-21 16:32:17 +0300
  • 1bc6f2c3fe No clipping at zoom < 0.3. Really fast A.Olokhtonov 2023-11-21 02:09:39 +0300
  • 316d0fedc9 Use correct rendering order.. A.Olokhtonov 2023-11-14 02:16:12 +0300
  • e86ffd6508 Depth prepass with simplified opaque shapes A.Olokhtonov 2023-11-14 01:33:57 +0300
  • 7e3b6156c0 Render stroke_id to a small texture A.Olokhtonov 2023-11-09 19:42:11 +0300
  • 0d8667aa3a Use TypedArray for culling. This is up to 10 times faster! A.Olokhtonov 2023-11-07 22:28:19 +0300
  • e41997563f Faster clipping A.Olokhtonov 2023-11-07 17:59:35 +0300
  • 46cd48fecd Cull segments, switch to indexed drawing (only for static data for now) A.Olokhtonov 2023-11-07 03:24:18 +0300
  • be50af68d4 Delete garbage file A.Olokhtonov 2023-08-28 12:27:52 +0300
  • 72deea0b03 Added LICENSE (unlicense) A.Olokhtonov 2023-08-28 12:25:49 +0300
  • 9a8854dc90 Handle touchstart with 2 e.changedTouches. This fixes panning sometimes not working on iPhone A.Olokhtonov 2023-08-28 01:52:02 +0300
  • 1803dedee2 Black-on-white cursor for ultimate readability A.Olokhtonov 2023-08-28 01:38:28 +0300
  • 14faef4146 Better draw->move cancellation. Instead of not registering short strokes, cancel them for all users if we registered a second finger during the time window. A.Olokhtonov 2023-08-28 01:32:47 +0300
  • c5928dd5bd Do not upload whole static buffer, instead use glBufferSubData. This commit fixes lag (and skipped iinputs) when other people are drawing A.Olokhtonov 2023-08-28 00:59:31 +0300
  • eefbb8ef75 Do not upload buffers each frame (DUH!), re-introduce dynamic data, set headers in caddy to enable precise timings A.Olokhtonov 2023-08-25 22:41:30 +0300
  • 605500028a Bump version A.Olokhtonov 2023-08-24 15:32:48 +0300
  • c1fd46da53 We have achieved good AA! A.Olokhtonov 2023-08-24 15:23:21 +0300
  • 01db70cab0 Good speed (quad per line segment). Need to figure out rounding A.Olokhtonov 2023-08-24 13:45:21 +0300
  • e3ae4cf6cd Upload whole point buffer, and align its size to 8K A.Olokhtonov 2023-08-22 18:46:11 +0300
  • 46587068e6 Limit max points per quad, fix wrong rounding of texture size A.Olokhtonov 2023-08-22 18:38:19 +0300
  • f72cbf5941 SDF bull fixed boxes + passed stroke width to shader A.Olokhtonov 2023-08-21 21:26:23 +0300
  • 69feb482a2 sdf bullshit (almost working) A.Olokhtonov 2023-08-06 02:03:34 +0300
  • ad9cded350 Sweet juicy svg cursor infinite A.Olokhtonov 2023-04-27 18:38:21 +0300
  • 6f446b7d13 Fwidth in the shader for "more gooder" AA A.Olokhtonov 2023-04-27 17:14:10 +0300
  • 8b3f28337e SDF town A.Olokhtonov 2023-04-27 01:17:16 +0300
  • 8557c5d47e Caps and joints via fragment shader A.Olokhtonov 2023-04-25 17:30:00 +0300
  • 0271e38dbc Fix wrong buffered points A.Olokhtonov 2023-04-24 16:20:39 +0300
  • 31b18e69a0 Images moving around, paste image from clipboard A.Olokhtonov 2023-04-24 02:52:18 +0300
  • 3b8232e196 Image broadcast A.Olokhtonov 2023-04-24 01:14:26 +0300
  • 1edcc6725b Moar better color/width sync A.Olokhtonov 2023-04-24 00:59:24 +0300
  • ac0d8f7605 Betta websocket reconnect A.Olokhtonov 2023-04-23 22:08:15 +0300