111 Commits
Author SHA1 Message Date
Piotr Baja 729daa1503 wip 2024-01-25 20:53:17 +01:00
Piotrek dac7c52912 trying to free unused chunks 2021-05-20 15:13:10 +02:00
Piotrek 7daec14ba7 More informative chunk states, much cleaner 2021-05-20 14:05:43 +02:00
Piotrek a5d109fb0a Loading chunks in radius instead of by travel direction, bugged (not reloading chunks) 2021-05-19 16:07:27 +02:00
Piotrek e9632a20d2 Added notes 2021-05-19 14:26:35 +02:00
Piotrek c4daecae6f writing node buffer to gpu all at once 2021-05-19 14:23:13 +02:00
Piotrek 15e40a941c avoiding copying node buffer 2021-05-19 14:01:40 +02:00
Piotrek 3718c2145e fixed bug where world offset was applied to camera position delayed 1 frame 2021-05-18 20:53:26 +02:00
Piotrek 10182730a5 cpu shifting nodes in a separate thread, very bugged 2021-05-18 16:27:23 +02:00
Piotrek 9fb88c634b some code cleaning 2021-05-18 14:53:04 +02:00
Piotrek 5a62d8c70d handling chunk decompresion errors 2021-05-18 09:20:15 +02:00
Piotrek 688405a579 maybe fixed the out of bounds chunk bug? 2021-05-17 21:47:04 +02:00
Piotrek 65bacd745e not loading already loaded chunks 2021-05-17 15:12:15 +02:00
Piotrek 5266b32823 writing chunks instead of blocks 2021-05-17 14:53:59 +02:00
Piotrek 7359b6549c freeing methods in renderer 2021-05-16 22:50:25 +02:00
Piotrek 00d1fa427a loading chunks in one axis at a time 2021-05-16 21:34:11 +02:00
Piotrek 0487f4acf3 waiting for previous chunk loading before doing next 2021-05-16 21:00:15 +02:00
Piotrek eecedbf4f4 fixed node texture shifting bugs 2021-05-16 19:08:47 +02:00
Piotrek 67bb4fddd0 cleaning 2021-05-16 17:19:23 +02:00
Piotrek 76e952995d preparing for node buffer shifting in a separate thread 2021-05-16 15:01:37 +02:00
Piotrek 57e1a9134e Moved node buffer logic to Nodes struct 2021-05-16 14:25:03 +02:00
Piotrek 77c74be02f ChunkLoader 2021-05-16 14:04:45 +02:00
Piotrek f8760e876c Loading and generating chunks in a separate threads 2021-05-15 20:48:59 +02:00
Piotrek e6a8712de0 preloading stats 2021-05-15 17:16:32 +02:00
Piotrek fa72ea7da4 bug with +z was my stupid mistake :] 2021-05-15 17:10:14 +02:00
Piotrek 16edbfea42 bug fixes, faster node texture shift, loading +z not working (0,0,2 chunk loading only one line) 2021-05-15 17:07:20 +02:00
Piotrek 00c518b9c1 Endless world, still some bugs to figure out 2021-05-14 19:54:46 +02:00
Piotrek e6329d568c World 0,0 is now at the center of the node texture 2021-05-14 14:25:12 +02:00
Piotrek 05b62d4b90 Changed chunk size from 32x32x32 to 16x16x16 2021-05-14 13:04:46 +02:00
Piotrek c1f3d0f398 Threaded loading chunks 2021-05-14 12:10:44 +02:00
Piotrek 120049d9f7 world shifting almost working 2021-05-13 16:18:01 +02:00
Piotrek 98736c39a0 Method for shifting world nodes texture 2021-05-13 11:59:22 +02:00
Piotrek 57782a88ab Dynamic loading, saving, generating chunks works 2021-05-13 09:13:43 +02:00
Piotrek ab9f4c83d0 WIP generating chunks at player position 2021-05-12 16:17:38 +02:00
Piotrek 4acf8ea816 preparing or auto loading chunks around player 2021-05-11 14:46:11 +02:00
Piotrek 6acdd51b05 Some toying with shader 2021-05-11 13:35:47 +02:00
Piotrek 0c7f07bc7b Made blocks texture have equal size, this created problems with memory usage 2021-05-11 13:22:09 +02:00
Piotrek 71e30abb62 Added fog 2021-05-11 10:57:54 +02:00
Piotrek e110e99053 larger block buffer 2021-05-10 22:07:07 +02:00
Piotrek a09f446ecd Pausing rendering, warnings cleanup, more statistics 2021-05-10 15:36:11 +02:00
Piotrek 4eaa0fab56 Compressing with lz4 2021-05-10 13:30:15 +02:00
Piotrek 3bd9fa942e Changed project name (placeholder), some renames 2021-05-10 10:43:14 +02:00
Piotrek 3a45d4e0de minor name changes 2021-05-09 18:48:06 +02:00
Piotrek 0e53810fbd writing node buffer in chunks to allow >48 size 2021-05-09 18:25:44 +02:00
Piotrek 466f98a42c updating node buffer max once per frame 2021-05-09 18:15:30 +02:00
Piotrek bf14d7c578 slightly faster copying blocks data 2021-05-09 18:09:03 +02:00
Piotrek 23d702ad6c Fixed loading world, added saving meta data 2021-05-09 16:27:04 +02:00
Piotrek d0b7a781b4 Loading world, not working yet 2021-05-08 22:55:25 +02:00
Piotrek 547f66d214 Saving world to file 2021-05-08 18:42:32 +02:00
Piotrek 989b75f54d Fonts, glyphs, displaying fps 2021-05-07 15:41:08 +02:00