pandemonium_engine/TODO.md

316 lines
20 KiB
Markdown
Raw Normal View History

# Pandemonium Engine TODOs
2022-07-27 20:32:41 +02:00
## Core
- Add a core binder class for Math. This would allow for simpler script to engine side code ports. Maybe it could also smplify scripting language code.
2022-12-22 19:51:25 +01:00
- Maye threading could be de-modernized. So the implementation could use the old os level constructs. (like pthreads). An implementation that uses std::threads could be kept around though. (without it being compiled). -> Just add back and update the old os api implementations (pthreads etc), keep the core classes, and make every single class that uses std threads overridable similarly to what can be done with thread now (mutexes etc).
2022-07-29 18:21:12 +02:00
- Maybe use NULLs again instead of nullptrs? TODO check if there is an actual difference, other than requiring cpp11.
2022-08-25 21:13:01 +02:00
- Add error macro like methods to global scope for scripting
2022-10-15 09:58:11 +02:00
- Add containers that are a drop in replacement for stl containers.
- Add compiler traits header.
2022-07-27 20:32:41 +02:00
## WFC module
- Need to rework the readme. Also link to the sample repo. (https://github.com/Relintai/wfc_module_samples)
- TilingWaveFormCollapse should not generate the images themeslves, rather it should just use internal ids, and return those to you. It could store variants. -> a derived class chould be mamde that adds image generation on top, but in a friendlier way.
- Array2D and 3D's getters and setters that need coordinates use a reversed order compared to everything in the engine. This is super dangerous, and should be changed. (Currently: get(y, x). Should be get(x, y)).
- The classes need smaller fixes and touchups.
- There are probably a few lingering bugs, as some examples give bad results.
- Need to make sure wave size, out size, and size related things are consistent, and intuitive, as right now they are neither.
- The bindings will likely need more improvements.
2022-12-22 19:51:25 +01:00
- Would be nice, if the algorithm could be parametrized from gdscript as well.
- Maybe adding Array2D, and Array3D like classes to the engine would be a good idea.
2022-10-15 09:58:11 +02:00
- Replace std::vectors to engine vectors.
## Physics
- Add a multi thread wrapper around the physics server (and nav server).
- Add a method to the physics server that lets the caller thread wait for the physics update, and wait for each thread to finish.
- These 2 changes would enable heavy simplifications to most Props, Voxelman, and Terraman generation code, as they could just directly use the physics server in multi threaded jobs without crashing. The entire update mode thing could be removed.
2022-07-04 13:04:00 +02:00
- Add dummy physics servers, so they can be turned off when not needed. It should return rids that seem valid, so app code doesn't freak out anywhere.
## Navmeshes
- Add dummy nav server, so it can be turned off.
2022-07-28 22:39:33 +02:00
- The current nav server uses worker threads (ThreadWorkPool), maybe it should use ThreadPool.
- The current nav server might not work if threading is disabled. TODO check.
- Maybe ThreadWorkPool could be removed.
2022-06-08 14:53:24 +02:00
## Terraman, Voxelman, Props
- MaterialCache class (classes) should be either core or just an another module. (I think the build system has module dependencies implemented.)
## Terraman, Voxelman
- The rid storage API is using dicts currently, and it's pretty awful to mess with. A new mesh storage class should be added instead. Since more than one module needs it either should be core or a new module. The api could just return a Ref<> to the storage class. And the class could be inherited from when needed. Should probably contain some generic api which allows you to store most things without really messing around too much. Like an api for mesh rids, navmesh rids, and collider rids, and generic rids.
2022-10-15 09:58:11 +02:00
- Currently the library only supports images for the top, all 4 sides, and the bottom. It should have image support for all 6 sides at least. I think surface definitions should have a count variable, which sets the stored image count. It could work similarly to lod materials, so you can just use indexes, and it will return what it can. I might also be a good idea to make the image getter scriptable (Or provide one which is).
2022-06-11 13:21:32 +02:00
## Editor
2022-12-22 19:51:25 +01:00
- Add support for enabling / disabling editor plugins, and also add a gui for this. (Like how the gdscript addons can be enabled/disabled, but for built in c++ stuff.) It will need support for either exclusion, or dependencies. (Dependencies would be better.)
2022-08-22 01:52:42 +02:00
- Modularize the editor.
2022-06-11 13:49:06 +02:00
## Engine
2022-06-18 19:08:06 +02:00
- (Maybe) add an SDL backend.
2022-07-31 15:30:28 +02:00
- Reorganize the project. Except for core, and a few smaller things like main everything should be a module that can be disabled.
- Add more hooks where needed, to let stuff register itself. Like visual server backends, so adding them is simple, as I think this is the best way forward, so you can just create your custom rendering backend, when needed. Like if you want lightmaps, add a module that has the tooling + visualserver that has it implemented.
2022-08-15 02:15:23 +02:00
- Port the DisplayServer from Godot4, as I think having display and windowing in a DisplayServer singleton instead of in OS is better architecturally.
2022-08-22 01:52:42 +02:00
- Port the capability to have more than one windows. Multi windowing however should be disabled by default, also I don't want to port the full multi windowing stuff for the editor, as it's a lot leaner the way it is. However multi windowing would be cool for creating tools. Would also make it easier to not have a window at all.
2022-12-22 19:51:25 +01:00
- The DisplayServer at first could just use stuff in OS, so it doesn't have to be ported all at once.
- Should backport the tests and the test suite from Godot4 as well.
2022-08-17 11:38:03 +02:00
- Backport optimizations to the hashmap (or maybe just add it as another option), and also replace usage where applicable (https://github.com/godotengine/godot/commit/8b7c7f5a753b43cec10f72b274bb1d70c253652b), and (https://github.com/godotengine/godot/commit/45af29da8095af16729955117a165d23e77cd740)
- Make operator='s return void (https://github.com/godotengine/godot/commit/7da392bcc52366740394322728464e724cf20cdf).
- Switch back to the old c++ version (pre c++11) for the codebase. I'm already targeting low end hardware, I think it will likely come in handy later.
- Implement something similar to this, so scripting language code can be simplified. (https://github.com/godotengine/godot/commit/5288ff538d75d2ddab257a9e1e40050c9b8fa1cb)(Create Variant built-in functions.)
2022-08-18 13:04:58 +02:00
- Move DynamicFont to a module, and make tools depend on that.
- Maybe backport the TextServer from Godot4?
2022-08-18 13:07:31 +02:00
- Make modules from everything under the thirdparty folder.
2022-08-18 13:04:58 +02:00
- Collect license information from modules and merge it back and handle it like the current thirdparty.md file.
- Clean up the third party licenses.
2022-07-31 15:30:28 +02:00
## Scene folder
- Rework it into modules.
2022-06-18 19:04:58 +02:00
2022-08-05 00:59:21 +02:00
## GUI
2022-12-22 19:51:25 +01:00
- Rename the EditorZoomWidget to something like ZoomWidget, and make it available for the games as well. Also I think I did smaller improvements to it in the world_generator addon. Also port those.
2022-08-05 00:59:21 +02:00
2022-07-04 13:04:00 +02:00
## Graphics
- Refactor platform code so it's not automatically creating a window, instead the VS should ask for it's creation, passing along the requested graphics api.
- Add a dummy VisualServer implementation, and a way to switch between this and gles2. Similar to how godot4 can have a dummy renderer.
2022-06-18 19:04:58 +02:00
## Rendering
- Move CPUParticles code into the VisualServer.
- Add support for generating vertex colors from lights in the VisualServer. (Also do this for 2d)
2022-08-17 11:38:03 +02:00
- Add LOD support to the visualserver. (Or maybe the meshes) - Add core LOD generation support (probably VisualServer). (This and vertex color baking could drastically reduce the amount of code in Terraman, Voxelman, and terraman 2d, props) (https://github.com/godotengine/godot/commit/d2302f53d6ad80943e7f4245ac572003f1681d00)
2022-06-18 19:04:58 +02:00
- Maybe add a texture (mergedTexture) that makes it easier to handle texture merges.
- Add gles3 support, but just expand gles2 for it. (Like it could use better multimesh support, better particles etc), but it shouldn't be that different from gles2.
- Probably add support for other renderers, like vulkan, but unlike godot4 this should be realtively simple, with the visualserver design. (In the same veins as gles2/3)
- (And/or other highly portable graphics apis, that is if they exist.)
- Add a raw shader type that can be written in the native graphics api language (support per backend shader implementation for it). It will likely need some easily parsable header for shader properties. This might simplify the creation of other backends.
- Support for adding graphics backends from modules. This will require platform specific creation funcs.
2022-07-04 13:04:00 +02:00
- Could add an api to query gpus, and optionally to mess with them. Like you could use an off gpu to to do something, maybe like calculations, etc. (Needs more research, not even sure if this is possible or not, or how hard it would be.)
2022-08-15 02:15:23 +02:00
- Rename VisualServer to RenderingServer like on Godot 4. I think it's a better long term name for what it does.
2022-12-22 19:51:25 +01:00
- Port the RenderingDevice API from Godot 4 alongside a RenderingServer implementation that uses it once it's stable. However keep the GLES backends around the same way as they are now, so RenderingServer would be Pluggable as well: RenderingServer <- RenderingSreverGLES2, RenderingServer <- RenderingSreverGLES3 (eventually), RenderingServer <- RenderingSreverRenderingDevice (This would then just use an available RenderingDevice).
2022-08-15 02:15:23 +02:00
- Port the newer godot rendering backends once they are stable enough. (With at least some of their features.)
- Somehow make VisualServer's implementation more modular.
- Add a scriptable VisualServer implementation. Similar idea as the scriptable networking api. Alongside with a similar interface for GLES. Would help with experimentation.
2022-06-18 19:04:58 +02:00
2022-06-19 22:41:32 +02:00
## material_maker module
- Polygon editor needs fixes, and likely an overhaul.
- Curve editor needs smaller fixes, and likely an overhaul.
- Port the rest of the nodes from material maker.
2022-07-07 17:21:42 +02:00
## Databases
- Table builder should have a method that can automatically create tables from any Object using it's properties. Like tb->add_object_properties("obj type"). You could the still mess with the query, add fields, and set keys. It's purpose should be simple automation when you don't need handoptimized tables.
- Query builder should have more helper methods to automate simpler queries as much as possible. Like: sfw("col", "table", "a < 3") -> SELECT col FROM table WHERE a < 3;, or sf()... etc
2022-07-07 17:23:07 +02:00
- Query builder should also have an update and create, (and also get) method which generates a query using properties to automatically create sql to save objects. They could also take a pk argument to tell which entry is the key. save method would also be nice that decides whether to update or create an entry.
2022-07-07 17:21:42 +02:00
- No full ORM functionality though, it should be really close to SQL queries, but with lots of helper methods, for the more trivial stuff.
2022-07-08 16:31:18 +02:00
- Go through and double check that all methods for the QueryBuilder are properly set up, and is using escapes as they should.
- Fix postgres and mysql backends, so they can be built. (They should be off be default.)
## Web
- Move simple web server to a new module.
2022-07-23 12:25:11 +02:00
- Implement big (or not in-memory) file upload support.
- Move HTMLParser, BBCodeParser, and MarkDownRenderer to a new (parsers?) module.
- BlogWebPage <- BlogWepBageFile, BlogWebPageDB
- NewsWebPage <- NewsWebPageFile, NewsWebPageDB
- AdminWebPage <- UserAdminWebPage, AdminPanelWebPage
2022-07-24 02:04:57 +02:00
- Add epoll api support to sockets, and make the web server use it.
2022-07-24 18:09:56 +02:00
- Add range http header support.
- Finish all the todos in the http parser.
2022-08-22 01:52:42 +02:00
- Could add a simple templating language. Probably would not be more than a few hundred lines. WebPageTemplate (Resource), with an importer. Most webnodes could have assignable properties for them. Could be similar to laravel's for example. Also it could be pre compiled in an extremely simple fashion. Vector<Statement> StringStatement, IFStatement, LoopStatement, CallStatement etc. Other than bool evaluation every statement type is extremely trivial. Also bool evaluation logic could be reused elsewhere (Also gdscript already have it implemented).
2022-07-08 16:31:18 +02:00
## Users
- Clean / flesh out the api of UserManager / UserDB. Also make UserManager register itself into UserDB.
2022-07-07 17:21:42 +02:00
2022-08-19 01:54:59 +02:00
## Networking
- Maybe port https://github.com/godotengine/godot/pull/50710 ? It adds some lower level stuff which should be useful. It also adds mesh networking which I'm not really sure about that it's really that useful for most games, as you probably want want authoritative servers in most cases.
- Rename the networking keywords (puppet, master etc) to something that is a lot easier to understand at a glance. Maybe something like CLINET_CAN_CALL_SERVER etc. Should call local maybe could be made a separate bool param like in Godot 4, although I think I like the current solution better.
- Somehow add helper methods that do what the RPC macros do in Entity.
2022-07-31 15:12:24 +02:00
## Ground Clutter
- Add new ground clutter module. It should have classes that help with spawning clutter like small objects, or foliage.
- Add GroundClutterData. It should contain all data that is needed to spawn in everything.
- Add GroundClutter Spatial node. Similar to TiledWalls, just adds in meshed.
- Add GroundClutterMerger Spatial node, which is the same as GroundClutter except it merges everything together.
- GroundClutterData should have a bool property, which causes spawners to raycast the ground and spawn stuff on hit.
- Should support foliage weights mode, which adds weights that shaders can use to add fake wind. (eventually)
- For Terraman/Voxelman they have to be registered and freed when chunks unload, also they should eventually handle chunk mesh generation events, if they need to raycast ground.
- When they need to raycast ground, they should wait until a raycast hits, maybe a few params could be added to how long they should try before giving up.
- Remove Ground clutter classes from terraman and voxelman.
- Should have prop support (by spawning in Nodes). It should not be merged.
## TiledWalls
- Finish implementing all collider types.
- Finish tiling types + z index support for other tiling that horizontal.
- Flavours + y_size probably has quite a few bugs.
2022-10-15 09:58:11 +02:00
## Platforms
- Add export platforms for frt, frt_sdl, and the linux server, so their binaries can be easily added and used from export template (tpz) files.
2022-07-25 21:51:26 +02:00
2022-10-15 09:58:11 +02:00
## Binaries, Containers, Releases
2022-12-22 19:51:25 +01:00
- Set up containers and build scripts to automatically build frt and frt_sdl binaries.
- Set up automatically building ios binaries as well.
2022-10-15 09:58:11 +02:00
- Try to set up godot's UWP platform again. Maybe.
- Add all binaries to the project side export and release helper scripts.
- Maybe split TPZ files, so you can install the export templates that you want.
## Ports
2022-07-25 21:51:26 +02:00
### Enable type information on release
2022-07-27 14:14:23 +02:00
Not sure whether to have this or not. It does increase binary size for release builds by quite a bit.
2022-07-25 21:51:26 +02:00
https://github.com/godotengine/godot/commit/226103d166e2806fdaee63242492233e810d6541
https://github.com/godotengine/godot/commit/663978e8ba5d8b3e37b9b1baf54a69e6a3a00656
https://github.com/godotengine/godot/commit/f0ca73892a26566e85e1fa819f151fa1db4a42ad
2022-07-27 19:28:09 +02:00
https://github.com/godotengine/godot/commit/3a8f2dda01adca0086a79347484d01b483c8b624
2022-07-25 21:51:26 +02:00
### Physics interpolation - Move out of Scenario
- Move VisualServer interpolation data out of Scenario and into VisualServerScene, so the interpolation data and enabled status is now common to all Scenarios.
- Fix physics interpolation in multithreaded mode by ensuring tick and pre-draw are called.
At first glance this might have the side effect of not being able to run multiple physics worlds. If this is true this is not needed.
The fix might be needed though. Double check.
https://github.com/godotengine/godot/commit/d2b1d296340bb514b16af037c7ad6ed19e7b4a3f
2022-07-26 15:54:47 +02:00
### Fix the issue causing the screen to be black after resuming when in low processor mode.
2022-07-25 21:51:26 +02:00
2022-07-26 15:54:47 +02:00
I did the low processor mode fix differently than in upstream godot, so need to check.
2022-07-25 21:51:26 +02:00
2022-07-26 15:54:47 +02:00
If needed then it's probably only the Main::force_redraw() call.
https://github.com/godotengine/godot/commit/7a88d5bf283952cfcccef111143c88923017599e
2022-07-25 21:51:26 +02:00
2022-07-27 01:16:11 +02:00
### Physics Interpolation - add helper warnings
Not sure if it's needed.
https://github.com/godotengine/godot/commit/ad9b2b3794f33429182923f55d3451dc98063617
2022-07-27 14:14:23 +02:00
https://github.com/godotengine/godot/commit/f1bef3c592ef18e0877fff913b5c1a8c1bfc9121
2022-07-27 01:16:11 +02:00
2022-07-27 01:28:22 +02:00
### Remove duplicate editor settings definitions
Has to be hand ported, however some of my modules will likely need a similar cleanup, so todo.
https://github.com/godotengine/godot/commit/d088128b439d2fddf08f0b87090d756dd417b6e1
2022-07-27 19:21:31 +02:00
### Display a modal dialog if threads are unavailable in the web editor
Not sure, if I end up porting it, I'll likely simplify it.
https://github.com/godotengine/godot/commit/d9acd21b46352a0c6fe09b42d03bbdb6a749687d
2022-07-28 14:06:00 +02:00
2022-08-18 13:58:04 +02:00
### Use parameter classes instead of arguments for all physics queries
Seems like a good idea to have eventually.
Also it should be expanded on, for the apis that returns arrays and dicts. Maybe those could
just write results directly to the passed parameter classes, so no allocations occur.
https://github.com/godotengine/godot/commit/acbd24ea842cb90ab49cd66d5dc7220e57c73f29
2022-08-19 02:09:16 +02:00
## Remove redundant thread sync counter draw_pending
The functions that used it already use a threadsafe FIFO queue
to communicate between threads and a sync to have the main thread
wait for the render thread.
Fixes #35718
The bugfix is likely needed, however I did not move physics interpolation out of scenario,
so this one needs more thought.
https://github.com/godotengine/godot/commit/9fbdace917026b04d638c03b2f991ae4ace33a9d
2022-09-20 17:29:33 +02:00
## [Core] Use std type traits to check operations triviality.
2022-09-20 17:34:07 +02:00
possibly
2022-09-20 17:29:33 +02:00
https://github.com/godotengine/godot/commit/4e33610fb0ab762b49bcbb86c0be5ea0c227b73f
2022-09-20 17:34:07 +02:00
## Added support for building shared libraries on linuxbsd
possibly
This adds shared build support for the scons build.
The build can now be built shared by passing shared=True in the scons command. This does drastically speed up the link time for the godot bin (anecdotally for my machine from 5 seconds to less than a second).
This PR mainly is to aid in faster development as outlined in godotengine/godot-proposals#1796
https://github.com/godotengine/godot/pull/52566
2022-09-20 17:29:33 +02:00
2024-02-08 21:17:14 +01:00
## Cleanup TODOs
Cleanup this file, lots of things are already done.
2024-04-17 17:10:44 +02:00
# New
Use StringBuilder where it's better. Especially in HTMLBuilder, and in the database module. Maybe in WebServerRequest. Etc...
Add back lightmaps as a module and implement them for the gles2 backend.
Implement a deque and replace std::deque in the NetworkSynchronizer.
Implement in-editor Viewport previews. Should be relatively trivial using World Overrides. Will likely need lots of small changes to work properly even with scene tab changes etc.
RenderingServer agnostic particle system. Then eventually normal particle system could be added back as GPUParticles.
Make the old gles3 renderer available as a separate module. Would need a different name, as it's not the same as the gles2 renderer.
Rename the gles2 renderer to something better. (Maybe only in-engine)
Fix the renderer select thing in the project manager. Also make it a dropdown so more backend can be added without messing with it.
Add an extension api to the RenderingServer so it doesn't directly need to have all the methods that are backend specific.
Figure out a simpler way to implement multi window support (compared to godot4) (especially for popups) without messing with the object hierarchy at all.
Also somehow make it not compilcate the codebase at all.
(Likely doable, since it would be just an another rendered wiewport, and everything would work without any changes)
Maybe an another set of popups could be added that try to open themselves in windows. Could be a module.
Expand all, and collapse all button to the scene tree in the editor.
Set up for the site a VPS, instead of it just being a redirect.
Also make it look acceptable at least.
Also finish cleanin up the docs, and host them.
Also create a nices theme for them.
Backport the new renderers as modules from godot4? I bet it wouldn't be that hard. Or maybe just one (eventually) as a proof of concept.
Gte rid of the server platform and make the dummy drivers selectable in any build (like in godot4).
Also make the renderer backends togglable during compile time. So server would becom a build preset.
Reorganize this file, and append difficulty to tasks.
Lost of classes miss docs, do those.
A bit more modularization. Would be cool to be able to compile the engine even without the SceneTree, without the 2d toolkit and without the gui toolkit,
and maybe without servers (= core alone) with a custom main.cpp (no #ifdefs everywhere, and no messing around with the build system,
just a flag could make scons not include all thos scsubs. Mostly for advanced and special use cases).
Finish the unit test module. Make a gui for it. One control, that could be added to the tree to see progress.