Thread #108674862
HomeIndexCatalogAll ThreadsNew ThreadReply
H
I want to make this piece of shit better and I have the source code. This piece of shit runs like garbage on all hardware. It's singlethreaded and runs mostly on the CPU. It uses fixed function which means multicore rendering is going to be a pain in the ass unless I overhaul the pipeline to go through a command buffer. Anything else I should add to the list? I have already added LODs.
I am also considering:
>render distance capped to 6
>finite worlds as the default world generation setting, but it loops around, so if you go straight forward for a while you'll come back to where you started
Upgrading the entire rendering pipeline to a version of OpenGL above fixed function pipeline is likely off the table. Vulkan was never on the table to begin with.

I express interest in letting the game continue to run on computers from 2010. The 2007 build of TF2 runs better on those machines than the Alpha version of Minecraft. I want to fix this and I appreciate any advice I may be given.

I plan on heavily altering gameplay after I complete this architectural upgrade.
+Showing all 20 replies.
>>
>I express interest in letting the game continue to run on computers from 2010
>Minecraft Alpha
>can't run on computers from 2010
the pills your doctor prescribed to you are meant to help you. take them.
>>
The world needs more innovative voxel games. Why try to polish a turd? Start with a better voxel engine.
>>
>>108674886
I want the game to perform better without needing to use features that are only available in newer hardware.
>>
i dont get it. i was playing this game just fine on an office laptop in 2010
>>
>>108674934
What's the best voxel engine?
>>
>>108674862
>I have the source code
elaborate on what exactly you mean here...? do you have the actual original source code or just some kind of decompilation or something
>>
>>108674862
Idk, man, guven you said is true, you will spend to much time to essentially make another minecraft clone without mods. Why wouldn't you just go and mod the shit out the Vintage Story? It already made on the sane PL with very good mod support. It still lacks big-big mod creators to thrive.
>>
>>108674988
minecraft doesn't use voxels.

and best voxel engine depends on what type of workload you want to do with your game.

on complex voxel scenes, you can't physically represent every voxels in memory, because there would be trillions of them, so you describe your geometry using larger shapes, triangles, curves or perlin functions, then the gpu renders visual voxels on them through interpolation.

minecraft builds a single mesh on CPU, which is then sent to the GPU. so you get a single draw call for the entire screen. As soon as one block is modified in the scene, it doesn't recompute the entire mesh, instead it still renders the original mesh, but then renders a 'correction' mesh on top, to account for the modified block. When there are too many corrections, it smashes them with the original mesh to get a single mesh again.

the cpu heavy part is building that mesh.
>>
>>108674938
But why? There's already multiple popular open source Minecraft clones written in languages which aren't Java. Just make a fork and reimplement all Alpha Minecraft features there.

>>108674992
Minecraft and Minecraft Dungeonscsource code leaked a few months ago.
>>
>>108675623
that was sourcecode for the CONSOLE versions, entirely different thing from the Java Edition Alpha version in OP's screenshot
>>
Minecraft mainly runs like shit because it's made in Java. It has nothing to do with the graphics / what's happening on the GPU. Best way to improve Minecraft performance is to rewrite it in a better language
>>
>>108675024
that sane PL is why there's no mods for it. every game with a modding scene runs on C# monogame/unity or custom java engine, or lua/python if they exist.
>>
>>108674862
I want to cross mine minecraft with the lego bricks software and make lego minecraft with custom parts
>>
>>108674862
>Let's reinventing the wheel instead of making the wheel perfect
>>
>>108674862
Your goal is conceptually simple but involves a lot of work. MineCraft is written in Java, an interpreted language. Interpreted languages are much slower than compiled languages. What needs to be done is to port (rewrite, really) MineCraft to be entirely in C++, or, better still, C with some key routines in assembly.
Have at it. Godspeed. :)
>>
>>108674862
>It's singlethreaded and runs mostly on the CPU.
The game has been multi-threaded since early release

>It uses fixed function
Minecraft dropped legacy opengl around 1.14, it has been using modern opengl for seven years, still runs like shit and cannot do dynamic lighting

The original creator of optifine has long rants from 1.8 until he rage quit in 1.12. The quality of the code fell off a cliff during and after the Microsoft purchase. Mojang's dev time goes mostly into endless half-assed rewrites chasing tech trends like OOP, functional programming, ECS... and 90% of the CPU work done is garbage collection.

A modder called TheMasterCaver backported most modern features into 1.6.4, it uses less than 100MB of ram
>>
>>108674862
>says he has java edition alpha sourcecode
>refuses to elaborate
>leaves
>>
>>108674862
>what is Sodium, Litium, ModernFix and FerriteCore mods
>what is Luanti engine and MineClone / VoxeLibre game
If you gonna write already written code, then please do it from scratch.
>>
>>108676399
Vintage Story is C#
>>
>>108678723
yeah

>>108675623
>>108675024
>>108680408
i intend on playing the game too

Reply to Thread #108674862


Supported: JPG, PNG, GIF, WebP, WebM, MP4, MP3 (max 4MB)