Commit Graph

129 Commits

Author SHA1 Message Date
Alex Zenla
3b2a6ffb6a
implement on screen virtual controller for iOS 2024-09-14 23:39:46 -04:00
d7cb051fb7 split core renderer stuff into metal subfolder 2024-09-12 11:37:08 +10:00
667201fe49 renderer: internal support for blend modes 2024-09-10 10:38:27 +10:00
Alex Zenla
f8a80c6b38
Request more memory from the system on iPad 2024-09-08 21:26:07 -04:00
b6085c8f1c switch permutation type to ubyte 2024-09-09 04:11:26 +10:00
493790bd64 colour no longer requires SIMD type as backing store 2024-09-09 03:23:15 +10:00
d520623492 replace expensive srgb conversion with a simple gamma ramp in chunk mesh builder 2024-09-09 03:02:31 +10:00
d4b1377238 decrease memory usage by storing chunk colours as 8bit (at the cost of slower mesh generation) 2024-09-09 02:34:04 +10:00
53e1f9cc7e requires signing bullshit so it has to go for now, sorry alex 2024-09-09 02:26:02 +10:00
935aa3e765 refactor chunk rendering and fix chunk rendering precision loss at large positions 2024-09-09 02:21:15 +10:00
Alex Zenla
6e99401474
improvements to iOS support 2024-09-07 22:47:04 -04:00
8346dee2a6 make chunkid id field private 2024-09-08 04:21:26 +10:00
b804030594 turn the ChunkID type alias into a real type 2024-09-08 03:47:26 +10:00
76b61c49ae ravine gaming 2024-09-07 13:50:40 +10:00
ee54e011a1 world regen clears all chunks 2024-09-07 04:05:50 +10:00
c80e456d3e fix player ground detection 2024-09-07 00:09:51 +10:00
2a11080eba move some shared binds to a setup stage 2024-09-06 23:54:23 +10:00
34ec6f71eb model batch untz untz untz 2024-09-06 23:07:53 +10:00
Alex Zenla
54ed81b15d
fix ghost chunks and wait for generation on startup 2024-09-05 21:16:29 -04:00
57b97148a4 initial modelbatch 2024-09-06 06:37:19 +10:00
0289992e4b gelato world has reiceve updat e 2024-09-06 01:38:57 +10:00
fed6a26882 technicolour icecream hellscape terrain 2024-09-05 22:32:30 +10:00
301aa28c4d fix significant oversights in noise & random 2024-09-05 21:46:49 +10:00
2a4eb2283a player physics pass 2024-09-04 22:15:29 +10:00
080522e01b tower world gen 2024-09-04 01:38:27 +10:00
f77b64cc85 fail in a non crashy way for big chunk model generation 2024-09-04 00:19:08 +10:00
Alex Zenla
cfb985cff6
implement parallel chunk mesh building 2024-09-03 09:48:41 -04:00
94ae0c26b1 adjust chunk generation range 2024-09-03 23:42:28 +10:00
Alex Zenla
5e40e12c8b
implement infinite worlds with threaded chunk generation 2024-09-03 09:18:55 -04:00
Alex Zenla
224bb6616c
Official iOS/iPadOS/visionOS/tvOS support 2024-09-03 05:39:45 -04:00
Alex Zenla
b0ccd3b335
use main.m and SDL_main functionality 2024-09-03 05:01:18 -04:00
Alex Zenla
c4f510417f
set main thread qos to userInteractive 2024-09-02 16:56:08 -04:00
f4d78df0c9 noise project folder 2024-09-03 02:58:25 +10:00
c24e6245fe move noise stuff 2024-09-03 02:57:29 +10:00
60e6059d61 hopefully more robust platform detection 2024-09-03 02:52:03 +10:00
83c85126e7 use instance buffer storage mode most appropriate for the hardware 2024-09-03 02:08:12 +10:00
427116e6bc use private storage for mesh buffers 2024-09-03 02:03:38 +10:00
0cdc495434 don't damage chunk if a one block change doesn't touch a solid 2024-09-02 19:59:37 +10:00
d35de84221 rearrange some sources 2024-09-02 19:13:29 +10:00
42244456c9 restore halfs in shader 2024-09-02 19:06:16 +10:00
Alex Zenla
4209a925c4 RIP to Float16, it's sad that Intel doesn't support you. 2024-09-02 19:03:12 +10:00
2e4a7a10df use chunkid typealias for clarity in concurrent worldgen 2024-09-02 18:28:36 +10:00
Alex Zenla
65af0b321d
implement a safe concurrent dictionary 2024-09-01 22:30:47 -04:00
Alex Zenla
a149de885c
Parallelize chunk generation using fan-out pattern. 2024-09-01 19:41:22 -04:00
Alex Zenla
fbf66585eb upgrade SDL3 to d4b80726142d9108f16d4806c09779d612501608 2024-09-02 04:16:29 +10:00
f2031ac442 autoupdate damaged chunks, removes instance drawing 2024-09-02 02:38:48 +10:00
5f372a9398 initial chunk render caching 2024-09-01 23:34:32 +10:00
da26773221 prep for chunk meshing 2024-09-01 21:16:05 +10:00
cb0e7bb232 2d improved perlin 2024-09-01 18:19:42 +10:00
64fcebf4e5 simpler range mask calculation 2024-09-01 05:11:48 +10:00