Max render distance in minecraft?

What is the theoretical max distance minecraft java could run at? Even at 1fps past 64 chunks using optifine. And would it even work?

Supposedly it's 4096 but minecraft will crash after it renders enough in. But maybe some modification could be done and with computers getting better and better maybe one day you'd be able to run some **** like that. Below is screen cap I took with 64 chunks and a shader running. It was playable when you don't look in the direction of the already rendered chunks.