(Game) Chapter 224: New Algorithm (Patreon)
Content
"Letting the data run wild through a MIDI cable... that's insane."
Gerald suddenly wondered if he'd become too set in his ways. Maybe some problems really did require someone like Ethan, someone willing to think outside the box.
The older Gerald got, the harder it became to keep up with the way young people thought. Somewhere along the way, he'd started craving stability without even realizing it.
And perhaps that was why his thinking had become so rigid, so reluctant to entertain ideas that fell outside what he already knew.
"Ah..."
A sigh suddenly escaped him, and the unexpected sound left Ethan staring at him for a moment because, as far as he could remember, he'd never seen Gerald look so troubled before.
"What's wrong? Why are you suddenly getting all sentimental?"
"I'm almost fifty, Ethan."
Gerald casually removed the glasses resting on top of his head and set them on the table. The video game industry was a young man's game, and that was true even for someone running a hardware department.
"I've realized that I'm becoming more and more attached to all the experience I've accumulated over the years, yet at the same time, I don't have the energy to start learning everything from scratch again."
Unlike the young developers in their twenties, or even their teens, Gerald was born in 1940.
"The whole reason I got into the game industry was because people told me I couldn't do it. If someone tells me there's something I can't do, then I'll definitely go and do it."
In a certain sense, there had always been something a little rebellious about Gerald's attitude.
The problem was that as GAMENOVA climbed higher and higher, maintaining that stubborn determination was becoming harder and harder, especially because so many of Ethan's ideas were genuinely difficult to pull off, no they were far too difficult.
Gerald's gaze drifted toward the archive room, where countless proposals Ethan had come up with were sitting on the shelves, most of them ultimately shelved because the hardware simply couldn't handle what Ethan wanted to do.
The independent sound card for NovaXeno, which Gerald was currently working on, was already one of the few projects that had survived the brutal process of being tested against the actual limits of the hardware.
"When I was young, knowing how to repair a radio or fix a neighbor's television was enough to make people think you were a genius for miles around." He shook his head helplessly before continuing, "So, I think maybe..."
"What are you mumbling about? Just get this sound card finished as soon as possible. I've got another big project waiting for you."
Ethan cut him off with a grin. "Fifty is the perfect age to keep fighting. And you've still got plenty left in you, so don't let yourself slow down now."
With that, he tossed a document onto the table. The title was printed in bold:
Project... Swift
After taking the long way around to solve the multiplayer problem, Ethan finally returned to the Blizzard development team.
"Ethan, according to your requirements, we've managed to build a 2D map grid from scratch in Nova programming language."
Mike gave him a progress report and showed him what the team had accomplished.
The screen displayed a black and white checkerboard designed for testing, making it easier to distinguish the coordinates with the naked eye, while several pixels of different colors moved across the grid.
When Mike clicked on one of the squares, the game froze for several seconds, after which one of the colored pixels began moving toward the selected location.
Ethan's brow furrowed slightly.
"Let me see how you're handling the pathfinding."
Thump, thump, thump...
The three exchanged glances, and the moment Ethan said those words, all of them suddenly felt like students being called to the front of the class to have their homework checked.
They'd never been this nervous, not even on the days they'd forgotten to do their homework at school.
Allen took over and pulled up the project's source code for Ethan to inspect.
The three members of the original team had clearly divided their responsibilities. Frank handled the studio's operations and management, while Mike focused primarily on design and hardware. As for the lead programmer, before the two developers from Westwood arrived, virtually all of the programming work had fallen on Allen's shoulders.
Which was exactly why Allen was under an incredible amount of pressure right now. He cast a cautious glance at Ethan, and the frown on Ethan's face made him hesitate.
After a while, Ethan finished going through the entire section of code, and his furrowed brow suddenly relaxed as a smile appeared on his face.
Allen let out a long breath of relief. But before he could fully relax, Ethan spoke, sending him right back to hell.
"Hmm, this won't work, so just scrap it and start over."
Ethan smiled as he delivered a sentence terrifying enough to make anyone's heart stop.
To be honest, Ethan had been just as nervous as Allen moments earlier. When he saw that the pathfinding calculation was taking several seconds for a single unit, his first thought was that the hardware simply couldn't keep up, and if that had been the case, it would have been a serious problem.
If the hardware was really that underpowered, the entire project would have been completely impractical. Fortunately, after looking into it, Ethan discovered that the problem wasn't the hardware at all. The real issue was that the code simply wasn't good enough.
"You had me worried for a second." Ethan pulled over a chair and sat down. "If I'm not mistaken, this is the A* algorithm, right?"
A* was a pathfinding algorithm first proposed in the late 1960s, and it would remain widely used well into the 2000s. The fact that Allen had managed to implement something like this from scratch showed that his abilities were certainly up to the task.
In theory, A* was already one of the most effective general-purpose pathfinding algorithms available. Even IDA, bidirectional search, and other approaches developed in later years were built around many of the same fundamental ideas, improving the way heuristic search was performed rather than completely reinventing it.
"Yes... is there a problem?" Allen was completely bewildered.
He had spent a great deal of time researching the pathfinding system Ethan had requested, and even beyond the original design, he had optimized his implementation for faster memory access while moving part of the data processing onto the graphics card, which had already given the system a considerable boost in efficiency.
So, he hadn't expected Ethan to reject the entire thing outright.
"Oh, this pathfinding module isn't bad. We can package it up and save it for another project that needs it, but we can't use it for Command & Conquer."
Ethan made a few simple modifications to the code, expanding the pathfinding system so that all the units would calculate their paths simultaneously. He then recompiled and ran the program before casually clicking on a location, just as he had done earlier.
This time, the program froze completely. The enormous amount of computation immediately overwhelmed the already painfully slow processor and graphics card.
"See? An RTS needs dozens, hundreds, or even thousands of units moving around the screen at the same time. Are you really planning to run a complete pathfinding calculation for every single unit?"
Allen scratched his head awkwardly.
He had actually noticed this problem a long time ago. The problem was that he hadn't been able to come up with a suitable solution, so for the time being, he'd simply made do with the approach he already had.
Building all of this within such limited hardware constraints was simply too difficult.
"For what we're trying to do, we can't use A* anymore. We need a pathfinding system that's better suited to RTS games. Let's call it the Flow Field Pathfinding algorithm."
"F..."
"The core idea is simple: calculate it once, then use the result for thousands of units."
Allen's eyes went blank. If Ethan was telling the truth, then he had essentially come up with an entirely new pathfinding algorithm out of thin air, one that could potentially improve efficiency by thousands, or even tens of thousands, of times.
That... wasn't that a little ridiculous?