1
Life Advice / Re: Dwarf Fortress and learning to program something similar
« on: October 03, 2008, 06:51:42 pm »
Can VB do the game logic as fast as C++?
Lets assume I'm writing the logic for generation of a random world in Visual Basic. I've got some algorithms that raise pointy mounts, carve out deep seas, and run deep rivers. Then I start populating the world with entities, lets say for the sake of simplicity they are Dwarves.
So far this is all just all in memory, no graphics drawn, just variables.
For each tick of game time, an AI procedure is ran for each Dwarf, which tells it what to do, based on his surroundings. So for example, if he knows an elephant is close, and his personality = coward, he runs.
Visual Basic is basically comparing data vs data, multiplied by how many objects are in my Virtual World.
Would C++ do this logic part faster? Because if it can handle logic faster, that would mean I could do more calculations per frame, basically meaning I can have a more complicated and larger world.
If they're the same, then great, I can do my virtual world in VB and not worry that it's spending cpu cycles doing something not related to my game, like polling for Windows drag-drop events or something, or talking to Microsoft Office to see if they would like to have lunch some time, or checking every object of data in my simulation to see if it's not going to break windows?
I suppose I'm getting into some really technical details here.
Lets assume I'm writing the logic for generation of a random world in Visual Basic. I've got some algorithms that raise pointy mounts, carve out deep seas, and run deep rivers. Then I start populating the world with entities, lets say for the sake of simplicity they are Dwarves.
So far this is all just all in memory, no graphics drawn, just variables.
For each tick of game time, an AI procedure is ran for each Dwarf, which tells it what to do, based on his surroundings. So for example, if he knows an elephant is close, and his personality = coward, he runs.
Visual Basic is basically comparing data vs data, multiplied by how many objects are in my Virtual World.
Would C++ do this logic part faster? Because if it can handle logic faster, that would mean I could do more calculations per frame, basically meaning I can have a more complicated and larger world.
If they're the same, then great, I can do my virtual world in VB and not worry that it's spending cpu cycles doing something not related to my game, like polling for Windows drag-drop events or something, or talking to Microsoft Office to see if they would like to have lunch some time, or checking every object of data in my simulation to see if it's not going to break windows?
I suppose I'm getting into some really technical details here.