C++ vs VB for OpenGL

Published April 06, 2009
Advertisement
This may sound like a stupid statement. However, I have extremely good success with OpenGL using VB as the coding language.

I have implemented a full 2D/3D Graphics Renderer using it with extremely good performance.

However, I am now starting to hit problems in terms of performance when loading objects. I want to have no loading/transition screens between different areas of the map when a player moves from say his, ship to the dock, to the sickbay etc. One continuous batch of gameplay.

This is not feasible with my current setup. Since my graphics engine to date is single-threaded. When a new object needs to be rendered, it must first be loaded into memory, if it is not already. With even a relatively small model 30k polygons, it can take a good 500ms in order to do this, especially with normal and bi-tangent calculations being added. This obviously will not do.

I have started migrating my graphics renderer over to C++ to make full use of the power of multithreading that will be presented to me. Being able to have one thread for rendering, and use another thread for loading my models and texture data into memory.

Of course this bring's it own bunch of problems and headaches, namely synchronisation. However, as long as this is taken into consideration, my loading screens should be completely removed.

As this is the first entry in my development journal, I have no code to add. I am currently busy writing a series of tutorials, based in C++ for OpenGL 3.0 and I shall post my progress with these here as well.

I will also post progress of my graphics engine, Velora, which I am developing for the game Destiny, that my company, neogroup, is developing.

I hope to have an update at least once a week, so check back often.
Next Entry C++ File I/O
0 likes 3 comments

Comments

benryves
Welcome to journal land!

That said, I'm not sure how using C++ helps in your situation; VB has access to System.Threading, which makes thread management an absolute doddle (unless you mean the ancient VB6 by VB?)
April 06, 2009 02:41 PM
Staffan E
Welcome to the lands. Looking forward to reading more about your projects.
Do you work alone on the game and engine or are you legion?
April 08, 2009 03:16 AM
Gaiiden
welcome to the land of journals! look forward to featuring some of your posts - if they're up to it [smile]
April 10, 2009 10:48 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement