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 

osgDB::OutputStream write array optimization


 
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission
View previous topic :: View next topic  
Author Message
Farshid Lashkari
Guest





PostPosted: Thu Sep 20, 2018 11:17 pm    Post subject:
osgDB::OutputStream write array optimization
Reply with quote

Hi Robert,


I've made a change to osgDB::OutputStream::writeArrayImplementation so that it writes the array data in a single write operation for binary files. This significantly speeds up writing out osgb files for large data sets (e.g. point clouds). osgDB::InputStream already performs a similar optimization when reading array data from binary files. I've attache the modified file.


Cheers,
Farshid

------------------
Post generated by Mail2Forum
Back to top
Farshid Lashkari
Guest





PostPosted: Wed Oct 03, 2018 9:16 pm    Post subject:
osgDB::OutputStream write array optimization
Reply with quote

I've resubmitted this as a PR through github:


https://github.com/openscenegraph/OpenSceneGraph/pull/632




On Thu, Sep 20, 2018 at 4:16 PM Farshid Lashkari < (
Only registered users can see emails on this board!
Get registred or enter the forums!
)> wrote:

Quote:
Hi Robert,


I've made a change to osgDB::OutputStream::writeArrayImplementation so that it writes the array data in a single write operation for binary files. This significantly speeds up writing out osgb files for large data sets (e.g. point clouds). osgDB::InputStream already performs a similar optimization when reading array data from binary files. I've attache the modified file.


Cheers,
Farshid





------------------
Post generated by Mail2Forum
Back to top
robertosfield
OSG Project Lead


Joined: 18 Mar 2009
Posts: 12323

PostPosted: Thu Oct 04, 2018 8:05 am    Post subject:
osgDB::OutputStream write array optimization
Reply with quote

Thanks, merged from PR. Once tested I'll merge with 3.6 branch.
On Wed, 3 Oct 2018 at 22:16, Farshid Lashkari <> wrote:
Quote:

I've resubmitted this as a PR through github:

https://github.com/openscenegraph/OpenSceneGraph/pull/632

On Thu, Sep 20, 2018 at 4:16 PM Farshid Lashkari <> wrote:
Quote:

Hi Robert,

I've made a change to osgDB::OutputStream::writeArrayImplementation so that it writes the array data in a single write operation for binary files. This significantly speeds up writing out osgb files for large data sets (e.g. point clouds). osgDB::InputStream already performs a similar optimization when reading array data from binary files. I've attache the modified file.

Cheers,
Farshid




------------------
Post generated by Mail2Forum
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenSceneGraph Forum Forum Index -> Submission 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 Retrieve the triangles indices array ... Paradox General 1 Mon May 13, 2019 11:16 am View latest post
No new posts Write Image From texture Generated by... GarfieldPig General 1 Wed May 08, 2019 11:42 am View latest post
No new posts Write PagedLOD LittleBee General 3 Sat Dec 22, 2018 12:08 pm View latest post
No new posts About Interleaved Array Support mp3butcher General 4 Tue Oct 09, 2018 11:13 pm View latest post
No new posts axis / axes with color array doesn't ... Steal General 0 Wed Sep 05, 2018 4:07 pm 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