Polan Posted July 29, 2011 Share Posted July 29, 2011 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 . Quote Link to comment Share on other sites More sharing options...
Canardia Posted July 29, 2011 Share Posted July 29, 2011 CreateCube() creates an uninstanced cube, so you need to create only 1 cube, and then instance the other cubes with nextcube=CopyEntity(cube). Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Rick Posted July 29, 2011 Share Posted July 29, 2011 Just an fyi Polan, LoadModel() however will Instance. It's just the primitive mesh commands with CreateXXX() that won't. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.