Hi !
Featured games (87)
games approved by the League of Dukes
Games in Showcase (672)
Games in Android Showcase (194)
games submitted by our members
Games in WIP (727)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Float/byte/Buffer overhead  (Read 1439 times)
0 Members and 1 Guest are viewing this topic.
Offline Captain-Goatse

Junior Devvie

I suck at teh 2D. XBOX IS BIG LOL!111

« Posted 2003-04-24 14:13:02 »

As some of you guys have actually developed a working games with LWJGL, I'd like to know how the use of buffers affect the rendering speed?

For example is it better to build your own rotation matrix instead of letting the gl do the calls through buffers? What about minimizing the use of buffers with doing more stuff java side. I haven't seen any NIO benchmarks so how would I know.

So, how big is it really?
Offline princec

« JGO Spiffy Duke »

Medals: 743
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #1 - Posted 2003-04-24 18:13:05 »

Pretend that you have three depots. One is called Java, the other, GL, and the last depot, Video Card.

If you imagine every function call being a single lorry which can carry an unlimited amount of data travelling from one depot to the next you can get a pretty good idea of what the efficiency will be like. Especially if you think that there's a 20 mile drive between the depots and only one lorry fits at a time.

IOW, if you want to construct a rotation matrix, consider this:

You first have to create it on the Java side, then you have to send it to GL; then you have to send it to the video card.

Alternatively you can get GL to create it and send it to the card directly. Saving you a 20 mile lorry drive.

Cas Smiley
(under influence of champagne again)

Offline Captain-Goatse

Junior Devvie

I suck at teh 2D. XBOX IS BIG LOL!111

« Reply #2 - Posted 2003-04-25 04:05:50 »

Yeah, I sort of figured that out.

What about excessive buffer calls? I guess I have to reduce the amount of buffer calls in order to keep the code as fluent as possible.
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

IanParcs (45 views)
2016-04-18 14:18:53

KaiHH (45 views)
2016-04-18 08:35:41

KaiHH (75 views)
2016-04-15 12:43:58

theagentd (76 views)
2016-04-14 02:16:17

theagentd (90 views)
2016-04-14 02:15:43

IanParcs (104 views)
2016-04-12 03:51:16

IanParcs (47 views)
2016-04-12 03:50:03

IanParcs (43 views)
2016-04-12 03:49:54

IanParcs (38 views)
2016-04-12 03:49:52

IanParcs (48 views)
2016-04-12 03:49:52
Website offering 3D Models specifically for games for free
by vusman
2016-04-29 12:56:17

List of Learning Resources
by SilverTiger
2016-02-05 09:39:47

List of Learning Resources
by SilverTiger
2016-02-05 09:38:38

List of Learning Resources
by SilverTiger
2016-02-05 09:35:50

Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!