Jump to content

Instancing


Polan
 Share

Recommended Posts

So I finally decided to check out leadwerks, first think I noticed is... lack of any info about instancing. I searching in documentation, forum and google, only stuff I found is some log that say about support.

I did simple test, ignored all lights etc, just simple massive render. Made array 50x50x50 and fulled them with cubes. After quite a long time of creating , it crashed. I lowered array to 20x20x20 and got 40fps. Static cubes, no rotation etc.

I did similar test with raw opengl 3.3 and I had 60fps 50x50x50, 58fps when I started to rotate cubes (used Instancing). Few stuff were missing, but still, it's huuge difference in performance.

All my ideas fly around massive scenes with not so dynamic objects that repeat alot, with leadwerks it seems to be quite impossible to achieve.. Unless I'm missing some special command for instancing.

 

 

EDIT:

oh right. That always happen. Right after posting I found the entity stuff :D.

Link to comment
Share on other sites

CreateCube() creates an uninstanced cube, so you need to create only 1 cube, and then instance the other cubes with nextcube=CopyEntity(cube).

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...