The outcome is that you get a metric fuckton
Java basically runs as an in between from a compiled and an interpreted language one. And since every instance of it is virtualized in a container, there is a great deal of overhead with Java. I think you’d be amazedĀ runescape 2007 gold how effective would be for RuneScape’s server aspect. Many MMOs run way more intensive systems but because they’re built on languages that are better that they operate much smoother. The C languages may also be constructed to scale to hardware much better. Java has multithreading capability that is quite inferior and access to hardware acceleration or RAM isn’t efficient in any way.
I could easily be wrong here, as my experience with Java is rather restricted, but from what I know about the terminology it isn’t effective in contemporary day for the majority of tasks. Yes, it’s more overhead compared to run apps. No, it should not be the bottleneck and beneath 2000 players. Shifting into some other language is a bandaid solution to a far more insidous difficulty: for decades Jagex has encouraged and employed QA techs into”programming” roles, rather than hiring qualified software engineers.
The outcome is that you get a metric fuckton of bad code, at a codebase that is decades old, scripted in an intermediate language (runescript) that is then translated and ran by an already interpreted language (java), and managed by a handful of real Java programmers. To be fair, with C++ they’d have to update their entire code base and write everything, which would hopefully facilitate the very first matter. I doubt they’d use some app that is dodgy to interpret the Java code to C++ without reviewing it? Right?
I would imagine a RuneScript interpreter could be responsive if composed in. It doesn’t totally fix the issue but it would help to buy rs3 gold. The ability to scale into multiple threads effectively would also significantly help. I doubt these RS servers are operating on i9 9900Ks, but probably rather Xeon or even Epyc systems with reduced clock rates and lots of cores, and they just just run several worlds on a single server. They’d make better use of their hardware if each server execution scaled better.
Switching to C++ won’t magically make you write efficient code, if you are writing code that is inefficient in Java. It’s very rare that the speech a tool is written in is the cause of downturn. Honestly, IME, most of the”speedup” jobs get from shifting languages is from the lazerfocus introduced from the rewrite. This causes those”why is that composed like that?” Questions actually being followed-up on because it has to be rewritten anyway, why not fix it. All this completely ignores the amount of risk that comes with rewriting a job. I can only imagine the amount of dev-hours consumed (along with the disappearance of gamers since the already dwindling update list perishes completely).