franck22000 Posted June 29, 2011 Share Posted June 29, 2011 So today i made a bug report about the decals here: http://www.leadwerks.com/werkspace/tracker/issue-188-decals-issue/ Here is a demo, so you can test and reproduce the problem, please post your remarks in this post so it can maybe help Josh to solve this issue, thanks ! I WSAD keys and mouse to move camera Left Mouse Button to add a decal toward the camera direction Then you can add some decals, and move the camera very close to the decals and see the hudge fps drop If you have some Dll erros you may need this: http://www.microsoft.com/downloads/fr-fr/details.aspx?FamilyID=bd512d9e-43c8-4655-81bf-9350143d5867 Here is the code that i am using: if(MouseDown(1)) { TCamera _Camera = CRenderer::getInstance()->getMainCamera(); TPick _Picked; CameraPick( &_Picked, _Camera, Vec3(GraphicsWidth() / 2, GraphicsHeight() / 2, 100), 0); TMesh _Decal = CreateDecal(_Picked.surface, TFormPoint(Vec3(_Picked.X, _Picked.Y, _Picked.Z), NULL, _Picked.entity), 0.020f); EntityParent(_Decal , _Picked.entity, 0); PaintEntity(_Decal , LoadMaterial("abstract::bullethole.mat")); UpdateMesh(_Decal); AddMesh(_Decal , _Picked.entity); } Quote You guys are going to be the death of me. Josh Link to comment Share on other sites More sharing options...
macklebee Posted June 29, 2011 Share Posted June 29, 2011 you should post the code as well in the demo and in the bug report... this could very well be an issue of implementation. Quote Win7 64bit / Intel i7-2600 CPU @ 3.9 GHz / 16 GB DDR3 / NVIDIA GeForce GTX 590 LE / 3DWS / BMX / Hexagon macklebee's channel Link to comment Share on other sites More sharing options...
franck22000 Posted June 29, 2011 Author Share Posted June 29, 2011 Thanks code added Quote You guys are going to be the death of me. Josh Link to comment Share on other sites More sharing options...
VeTaL Posted June 29, 2011 Share Posted June 29, 2011 120 fps with no decals 103-105 with 1 decal 96-99 with 2 decals 88-91 with 3 decals 85 with 4 decals 79 with 5 decals 74 with 6 decals Quote Working on LeaFAQ Link to comment Share on other sites More sharing options...
Canardia Posted June 29, 2011 Share Posted June 29, 2011 That's indeed quite ridiculous. You could have like 1000 real 3D models as decals with higher FPS. 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...
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.