Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Feature Request: SetMeshMemblockVertex Data From Array

Author
Message
Nieb
9
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 4th Jun 2022 07:32 Edited at: 22nd Jun 2022 23:54
The ability to dump an entire array into a memblock at once could be nice.
I've noticed that 50-70% of my mesh-generation function's time is spent copying 1 value at a time into a memblock.

Assuming the MeshMemblock header has been setup with attribute strings:


Example:
adambiser
AGK Developer
8
Years of Service
User Offline
Joined: 16th Sep 2015
Location: US
Posted: 4th Jun 2022 18:39
Not quite what you asked for, but I'll point out these in case you didn't know about them (I had forgotten about them myself):
SetMeshMemblockVertexPosition
SetMeshMemblockVertexColor
SetMeshMemblockVertexNormal
SetMeshMemblockVertexUV

Not quite the reduction of calls, but does reduce it somewhat.
Nieb
9
Years of Service
User Offline
Joined: 13th May 2014
Location: Lurking
Posted: 11th Jun 2022 00:00 Edited at: 11th Jun 2022 00:01
Thanks, down to 14ms from 16ms for memblock setup.
Though, I do have a few custom attributes which must still be inserted one at a time.

Login to post a reply

Server time is: 2024-04-19 04:01:57
Your offset time is: 2024-04-19 04:01:57