Workers & Resources: Soviet Republic

Workers & Resources: Soviet Republic

View Stats:
Question about C3D Engine - Deferred Context and rendering optimization
Hello 3Division,

I've done some reverse-engineering of C3DDLL64.dll (v1.1.1.7) and found that the engine contains Deferred Context code - InitializeDeferred, StartRenderDeferred, FinishRenderDeferred, ExecuteRenderDeferred, DestroyDeferred. These functions are exported and present in the VTable, but have 0 cross-references - meaning they are never called by the game.

I also found that StartRenderDeferred only copies RTV+viewport from slot[0] to slot[index+1], but does NOT copy shaders/buffers/states. This makes DC unusable without manual state mirroring.

Questions:
- Is this leftover code from an older engine version that is non-functional?
- Or is this functionality that was planned to be enabled but never finished?
- Are there any plans for rendering performance improvements (multi-threading, resolution scaling)?

Additionally, there is now an opportunity to improve the engine using AI agent-based tools: Claude, DeepSeek, Qwen, Gemini, OpenAI and others. They can analyze code, optimize algorithms, suggest refactoring, and even rewrite individual modules. If you have the source code available publicly or could grant access to a repository, I could try to optimize performance through such AI-powered approaches.

I've tried activating DC through VTable hooks and FSR 1.0 through a Present hook. FSR sharpening worked, but resolution scaling is blocked by the inability to intercept OMSetRenderTargets due to mismatched VTable indices.

Thank you.
< >
Showing 1-5 of 5 comments
if there was leftover code from an older engine version, that might be because (i think) this still uses the engine their older helicopter game did.

But i don't understand half of this post so i'll let others comment ^^
Hello, deferred rendering there is probably from some experiments when engine was start of the development. This option was not further explored as bottleneck is currently the CPU and simulation, not the rendering, you can see this with big map, when you point view to ground (that nor many objects displayed you will still getting low FPS)
Hello, 3Division!

Thanks for the confirmation - this matches what I found in binary. The deferred context functions (InitializeDeferred, StartRenderDeferred, FinishRenderDeferred, ExecuteRenderDeferred and DestroyDeferred) are all present in the vtable, but have no cross-references - the game code doesn't call them. This confirms they are leftovers from earlier experiments.

Another question about the future of the engine: in an interview with Peter Adamčik, he mentioned that the team has plans for a new project based on the Soviet Republic engine, and that Workers and Resources isnot finished yet. Would you like to know if there are any plans for further optimization of the engine (performance, multithreading, reworking of the renderer) using AI-based tools? Or will it stay as it is, with the effort of the team going towards the new project.

Thank you for your time.
@AlexDad
This was Peter just right here who replied to you.

Now, I am not a Peter but I am a tester and an ex moderator of this hub and can answer some of your questions.

There's at least one mystery DLC for the game left as well as some extra content for Early Start DLC. Base game is fully feature complete unless someone within a team comes up with something new.
There's no current plans for further codebase optimization and multithreading as it will require quite significant rework on the most basic engine level that can't be done anymore at this stage this late past 1.0, last chance to do it was 2019.
On a similar note, optimization per se is not something that game *desperately* needs besides tweaking how some of the logic works that can count towards optimization and that is something that been still happening from time to time but mostly unplanned.
As for using AI tools, devs have been openly not in favour of using them in the past besides temporary placeholder assets. General community mood towards it is also not in favour and there has been a bit of a backlash because of said placeholders.
Thank you for taking the time to reply in such detail. I truly appreciate it. It's great to hear directly from the development team and from experienced testers and moderators.
< >
Showing 1-5 of 5 comments
Per page: 1530 50