Commit Graph

  • 151d119812 Update chunk_container.d jordan4ibanez 2022-08-29 21:39:10 -04:00
  • 3f0a31f097 Add new info & boolean jordan4ibanez 2022-08-29 21:39:05 -04:00
  • a7eef076ec dito jordan4ibanez 2022-08-29 21:33:36 -04:00
  • 764409a416 Add in oversight of not inheriting existence jordan4ibanez 2022-08-29 21:33:31 -04:00
  • a75517ac95 Re-engineer to directly intake structs jordan4ibanez 2022-08-29 21:26:36 -04:00
  • 34880e0907 Implement thread safety jordan4ibanez 2022-08-29 21:26:11 -04:00
  • 878366c233 Implement thread safety jordan4ibanez 2022-08-29 21:25:43 -04:00
  • fba1718597 Re-engineer the world generator jordan4ibanez 2022-08-29 21:25:29 -04:00
  • 5f84648dbb Add in extreme lag into chunk mesh generator for testing jordan4ibanez 2022-08-29 21:24:41 -04:00
  • 3d587d1c9a Add in explicit cloning to separate threads jordan4ibanez 2022-08-29 21:24:17 -04:00
  • 03ceaa76c1 Turn on double buffering for bottleneck jordan4ibanez 2022-08-29 21:24:04 -04:00
  • f3c7a5d7d5 Add silly debug info jordan4ibanez 2022-08-29 20:40:50 -04:00
  • 4a29b29a00 Reconfigure the package jordan4ibanez 2022-08-29 20:40:39 -04:00
  • f05efada8a Add debug info jordan4ibanez 2022-08-29 20:24:35 -04:00
  • 6a09d29665 Implement basics of chunkpackage jordan4ibanez 2022-08-29 20:24:26 -04:00
  • 3460dfb84e Create thread_chunk_package.d jordan4ibanez 2022-08-29 20:19:18 -04:00
  • 1cd4126266 Add in a new element to ThreadMessageChunk jordan4ibanez 2022-08-29 20:18:30 -04:00
  • 4321f59d8a Begin implementing "phone line" between the threads jordan4ibanez 2022-08-29 20:14:50 -04:00
  • 57a6b3b7c9 Get the generator thread in a paused state jordan4ibanez 2022-08-29 20:14:29 -04:00
  • 6028c44c32 Refactor everything to be easier to work with jordan4ibanez 2022-08-29 20:03:51 -04:00
  • c1bebb0877 Fix typo & missed correction jordan4ibanez 2022-08-29 20:01:54 -04:00
  • 5270e3b353 Fix imports, spawn thread jordan4ibanez 2022-08-29 20:01:44 -04:00
  • 3f73d6064a Prep more for threading jordan4ibanez 2022-08-29 19:42:34 -04:00
  • 5ff518efc1 Add note jordan4ibanez 2022-08-29 19:35:46 -04:00
  • 57edec4623 Fix privacy of thread jordan4ibanez 2022-08-29 19:35:24 -04:00
  • 513ba890ea Explicitly name thread jordan4ibanez 2022-08-29 19:34:30 -04:00
  • 6b754115f0 Simplify name even more jordan4ibanez 2022-08-29 19:32:36 -04:00
  • 507469fbc2 factory->generator jordan4ibanez 2022-08-29 19:31:47 -04:00
  • 321cb6d681 Prepare mesh generator for threadification jordan4ibanez 2022-08-29 19:31:23 -04:00
  • ece1a17d13 Add note for future fix jordan4ibanez 2022-08-29 18:46:16 -04:00
  • 98561ce99d Disable raw handling of OpenGL jordan4ibanez 2022-08-29 02:00:19 -04:00
  • 802e714a71 Update thread_library.d jordan4ibanez 2022-08-29 01:59:08 -04:00
  • af04ab72e7 Implement thread reservation for mesh generator jordan4ibanez 2022-08-29 01:58:42 -04:00
  • a960d35a11 Disable refs jordan4ibanez 2022-08-29 01:56:36 -04:00
  • a433ac974a Prep chunk mesh generator for multithreading jordan4ibanez 2022-08-29 01:56:30 -04:00
  • 3f35f56330 Fully implement immutable getChunk jordan4ibanez 2022-08-29 01:56:03 -04:00
  • e7f9f75e07 Implement cloning function jordan4ibanez 2022-08-29 01:55:07 -04:00
  • 89a3fbda72 Terminate all threads on program exit jordan4ibanez 2022-08-29 00:55:14 -04:00
  • bd607efa9a Add thread terminator jordan4ibanez 2022-08-29 00:55:00 -04:00
  • f1bd3a33d3 Simplify & vastly reduce cpu usage jordan4ibanez 2022-08-29 00:54:51 -04:00
  • 1d7029da2e Make main thread intake from world generator jordan4ibanez 2022-08-29 00:47:23 -04:00
  • 1d9f3f47c9 Add inverse to create chunk from chunk message jordan4ibanez 2022-08-29 00:47:06 -04:00
  • cb8510e67c Turn the debug size down jordan4ibanez 2022-08-29 00:46:47 -04:00
  • 4ee903bb09 Fix wrongly used .copy() jordan4ibanez 2022-08-29 00:46:41 -04:00
  • 43180a2e87 Delete line jordan4ibanez 2022-08-29 00:46:25 -04:00
  • c729dc274e Use repurposed function jordan4ibanez 2022-08-29 00:27:46 -04:00
  • df5997a4ac Repurpose function jordan4ibanez 2022-08-29 00:27:39 -04:00
  • 1679b6df9d Add toggleable debug for world generator jordan4ibanez 2022-08-29 00:27:28 -04:00
  • 14e9a14efe Fix strange behavior with copy jordan4ibanez 2022-08-29 00:27:10 -04:00
  • 9a7052e2a8 Send generated chunks back to the main thread jordan4ibanez 2022-08-29 00:05:10 -04:00
  • 839477e90a Add an important note jordan4ibanez 2022-08-29 00:00:34 -04:00
  • a82d3ad5ed Make the internal chunk generation function for thread jordan4ibanez 2022-08-28 23:57:56 -04:00
  • 9e394b82c8 Create the output stack jordan4ibanez 2022-08-28 23:53:25 -04:00
  • ce9f8de235 Add raw getters for Chunk jordan4ibanez 2022-08-28 23:51:51 -04:00
  • 0fcbfb1db8 Add ability for threadMessageChunk to be a clone jordan4ibanez 2022-08-28 23:51:44 -04:00
  • 8bedd98c86 Undo last change jordan4ibanez 2022-08-28 23:48:13 -04:00
  • 248514a6c9 stack->generationStack jordan4ibanez 2022-08-28 23:47:33 -04:00
  • ef147c854a Add getters and setters for chunk data jordan4ibanez 2022-08-28 23:47:05 -04:00
  • 8944991781 Implement listener for world generator jordan4ibanez 2022-08-28 23:39:07 -04:00
  • 5517d9039c send the thread a shared string of serialized data jordan4ibanez 2022-08-28 23:38:52 -04:00
  • 0191593102 Add getter for world generator thread jordan4ibanez 2022-08-28 23:38:33 -04:00
  • 7572bd0e6b Add more useful debug info jordan4ibanez 2022-08-28 23:16:09 -04:00
  • 466c0bb032 World generator no longer crashes jordan4ibanez 2022-08-28 23:10:37 -04:00
  • 61c1683127 Walk around glfw thread unsafety with D metaprogramming jordan4ibanez 2022-08-28 23:10:06 -04:00
  • a909f6c071 Put in current work for debugging C library jordan4ibanez 2022-08-28 23:05:06 -04:00
  • 58b5dfc0aa Dispatch thread jordan4ibanez 2022-08-28 23:04:53 -04:00
  • 2a1439774f generateTerrain -> doWorldGeneration jordan4ibanez 2022-08-28 22:59:13 -04:00
  • b66200a68b Import thread library jordan4ibanez 2022-08-28 22:58:36 -04:00
  • 570d1d3dab Implement lockouts jordan4ibanez 2022-08-28 22:57:45 -04:00
  • 07df18076b Fix imports jordan4ibanez 2022-08-28 22:55:54 -04:00
  • 27ebb50b59 generation -> generator jordan4ibanez 2022-08-28 22:55:15 -04:00
  • 088db11359 Create thread_library.d jordan4ibanez 2022-08-28 22:54:53 -04:00
  • e0f3897387 Make game compile again for further testing jordan4ibanez 2022-08-28 22:52:33 -04:00
  • 13c11f54b8 Even more prep jordan4ibanez 2022-08-28 22:51:54 -04:00
  • c817c2c0a2 Fix imports for thread message chunk jordan4ibanez 2022-08-28 22:49:08 -04:00
  • d09e477744 Prep more of world generator to be a thread jordan4ibanez 2022-08-28 22:44:37 -04:00
  • ebd415f6aa disable function jordan4ibanez 2022-08-28 22:44:16 -04:00
  • e2ece4e76e close off function jordan4ibanez 2022-08-28 22:44:11 -04:00
  • 57a7df2a40 Create thread_message_chunk.d jordan4ibanez 2022-08-28 22:33:00 -04:00
  • 725f116d7e Sort out imports jordan4ibanez 2022-08-28 22:27:52 -04:00
  • e058b2b88c Further integrate threading jordan4ibanez 2022-08-28 22:26:49 -04:00
  • eb5bf2dd2e Remove generation stack from container jordan4ibanez 2022-08-28 22:26:40 -04:00
  • 561b8550ec Prep world generation for threadification jordan4ibanez 2022-08-28 22:25:50 -04:00
  • a0fbd9a86e Sort out imports jordan4ibanez 2022-08-28 22:25:38 -04:00
  • 4521054929 Begin integrating multithreading jordan4ibanez 2022-08-28 22:18:15 -04:00
  • f91200e98c Make easier to read jordan4ibanez 2022-08-28 18:25:39 -04:00
  • d0ca779b9b Decouple glfw window closer, this may not work jordan4ibanez 2022-08-28 18:25:12 -04:00
  • 220d9a0e46 Update comments and notes jordan4ibanez 2022-08-28 18:22:59 -04:00
  • 95ee8d9835 Encapsulate jordan4ibanez 2022-08-28 18:21:10 -04:00
  • 19a27a3416 Fix imports jordan4ibanez 2022-08-28 18:19:59 -04:00
  • 7cb3c1671b rename to make more sense jordan4ibanez 2022-08-28 18:19:35 -04:00
  • b45922fbb2 Move data off stack jordan4ibanez 2022-08-28 18:18:42 -04:00
  • 00af2a8a94 Fix encapsulation jordan4ibanez 2022-08-28 18:18:07 -04:00
  • 7158846ae4 Move (in future) a LOT of data off stack jordan4ibanez 2022-08-28 18:15:03 -04:00
  • 2e074ed71c Encapsulation, wrong static jordan4ibanez 2022-08-28 18:06:34 -04:00
  • cafea4a3cb Fix encapsulation jordan4ibanez 2022-08-28 18:05:25 -04:00
  • 91e2111277 Fix garbage code jordan4ibanez 2022-08-28 18:04:47 -04:00
  • 157155b3cc Delete block_graphics.d jordan4ibanez 2022-08-28 18:03:10 -04:00
  • a7deddc198 Fix immutable and encapsulate jordan4ibanez 2022-08-28 17:58:52 -04:00
  • 09d8292d45 Pull more data off the stack jordan4ibanez 2022-08-28 17:57:55 -04:00