Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Dang it... matrixes lagging when getting OVER NIIIIIINE THOUSAND

Author
Message
Mecha
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: The awesome places
Posted: 9th Jan 2007 22:01 Edited at: 9th Jan 2007 22:03
I got a matrix with 180x180 tiles, and it started lagging REALLY bad. Even though the matrix is spread out into a 10.000x10.000 field, it lags HORRIBLE.

But at 144x144 tiles it works perfect.

Any help how to kill the lag? The matrix is used as water and therefore many tiles are required.

The code:
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 9th Jan 2007 22:02
A 180x180 matrix is 64800 polygons.

Tempest - P2P UDP Multiplayer Plugin (DBP/DBCe)
Download the free version
Mecha
18
Years of Service
User Offline
Joined: 20th Mar 2006
Location: The awesome places
Posted: 9th Jan 2007 22:03 Edited at: 9th Jan 2007 22:11
Yeah, I know. Any idea how to bring it down? Any OTHER way to make water with waves?
Nicholas Thompson
19
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 10th Jan 2007 01:02
a shader... What graphics card are you aiming at being min-spec?

[center]
dark coder
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 10th Jan 2007 03:47
Make a smaller matrix and shift it, though using a normal mesh and editing the verts would be better, as then you could add shaders and what not.

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 10th Jan 2007 06:42
dont use matrices. when people told me not to, at first i was kinda like "eh... whatever" but after removing them, i found how nice it is to have all of the extra FPS. try working with an animated object, plains, or changed the positions of the vertices in real time. whatever you do, just dont use matrices unless you absolutely have to.


forum.thegamecreators.com/?m=forum_view&t=78971&b=8&p=0
forum.thegamecreators.com/?m=forum_view&t=91115&b=32
White knight
19
Years of Service
User Offline
Joined: 31st Dec 2004
Location:
Posted: 11th Jan 2007 22:44 Edited at: 11th Jan 2007 22:45
if posible use shaders for things like water and fire and a few other things.Also if you have old card invest on newer card with shader support atleast 2.0 they give great results.

abcd
SageTech
19
Years of Service
User Offline
Joined: 3rd Dec 2004
Location: Orlando, Florida
Posted: 11th Jan 2007 23:04
I might just be reminiscing, but were you referring to dragon ball z with the thread title?

Kenjar, yet another victim of NRS (N00b Relapse Syndrome) May he code in peace...

Login to post a reply

Server time is: 2024-05-10 04:27:13
Your offset time is: 2024-05-10 04:27:13