OpenSceneGraph Forum Forum Index OpenSceneGraph Forum
Official forum which mirrors the existent OSG mailing lists. Messages posted here are forwarded to the mailing list and vice versa.
 
   FAQFAQ    SearchSearch    MemberlistMemberlist    RulesRules    UsergroupsUsergroups    RegisterRegister 
 Mail2Forum SettingsMail2Forum Settings  ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
   AlbumAlbum  OpenSceneGraph IRC ChatOpenSceneGraph IRC Chat   SmartFeedSmartFeed 

[propal] compare VertexArrayState with current int state::setCurrentVAS


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General
View previous topic :: View next topic  
Author Message
mp3butcher (Julien Valentin)
Appreciator


Joined: 17 Feb 2010
Posts: 520
Location: France

PostPosted: Mon Dec 31, 2018 3:32 pm    Post subject:
[propal] compare VertexArrayState with current int state::setCurrentVAS
Reply with quote

Hi,

What do you think of this kind of change:
-adding a VertexArrayState comparator ( compare vbos and ebo and their dispatch index)
-in State::SetCurrentVertexArrayState(vas):
if(current->compare(vas))return;
current=vas;

It would add a little overcost but would be quite usefull in case Drawables can share their vas...
With the current design (createvascallback) it's possible but kind of tricky..:/

Thank you!

Cheers,
Julien

_________________
Twirling twirling twirling toward freedom
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing objects with shared GL state... AnyOldName3 General 44 Wed Mar 20, 2019 5:05 pm View latest post
No new posts VertexAttribDivisor -- should it be p... gwaldron General 1 Tue Mar 19, 2019 4:51 pm View latest post
No new posts Get Animation current time dhhabyc General 9 Thu Dec 27, 2018 5:54 pm View latest post
No new posts possible (probable) state leakage in ... Trajce Nikolov NICK General 1 Mon Nov 19, 2018 1:16 pm View latest post
No new posts Thoughts on Gitter, or other forums a... robertosfield General 18 Fri Sep 14, 2018 11:29 am View latest post


Board Security Anti Bot Question MOD - phpBB MOD against Spam Bots
Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP