Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (degenerate_762), 683 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
lorikob361, LucasJoshua, Baklazhan, Hanky27, firatv
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Little help about techniques #340716
09/07/10 09:21
09/07/10 09:21
Joined: Apr 2005
Posts: 3,815
Finland
Inestical Offline OP
Rabbit Developer
Inestical  Offline OP
Rabbit Developer

Joined: Apr 2005
Posts: 3,815
Finland
I'm on a team thinking about porting an 360 game to PC, with more improvements ofc.

The problem I have is that we need a method to render/control hundreds of enemies and weapons at the same time without bigger impact on FPS. The idea is to do the game in 2/.5D space shooter. The old version manages to do it pretty well now, but we're greedy for more.

I read upon some methods, but I can't recall them now D:

You can see a video of the current version in here: http://www.youtube.com/watch?v=vLdkPus9rTA


"Yesterday was once today's tomorrow."
Re: Little help about techniques [Re: Inestical] #340744
09/07/10 13:06
09/07/10 13:06
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
use a single function to loop through them all? it is better, performance-wise, than using sperate actions for each of them.


3333333333
Re: Little help about techniques [Re: Quad] #340747
09/07/10 13:41
09/07/10 13:41
Joined: Apr 2007
Posts: 3,751
Canada
WretchedSid Offline
Expert
WretchedSid  Offline
Expert

Joined: Apr 2007
Posts: 3,751
Canada
I can only speak for OpenGL and I don't know if you are using it and/or if the techniques are also available for DirectX.

First: Render as much in one draw call as possible. Batch as much objects as possible in one vbo.
You should also order the objects so that you don't need to bind the texture every time. The best would be binding one texture once per frame, draw all objects that use the texture together and the bind the next texture etc.

You can also use two vbos for your objects. One for even frames and one for odds and then switch them every frame. Then change only the one that is currently not active and update the other one once you are switching them again. This makes sure that the CPU don't needs to wait for the GPU and you can use the CPU cycles otherwise.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1