[DiscordArchive] So I can use functions that aren't in a .cc file right ?
[DiscordArchive] So I can use functions that aren't in a .cc file right ?
Archived author: Titi • Posted: 2024-09-24T17:53:08.104000+00:00
Original source
We might have to move back to python and just super optimize it. Some example of stuff that can be improved https://discord.com/channels/40204919974...7880527892
This isn't sustainable anyway it's too hard to maintain and debug.
Archived author: <o> • Posted: 2024-09-24T17:53:52.132000+00:00
Original source
the python api isn't too bad, for very expensive computations you can instead just create your own data that you do c++ calculations on and then move it back to python before you upload it to the model
Archived author: <o> • Posted: 2024-09-24T17:55:28.852000+00:00
Original source
iirc the parts of wbs that is done in c++ is done so because the computations themselves are very expensive, not because too much data is written to the model
Archived author: Titi • Posted: 2024-09-24T17:55:51.367000+00:00
Original source
Pywoowlib can also be moved to C++. I did some benchmarking and pywowlib is like 20% of processing time
Archived author: <o> • Posted: 2024-09-24T17:58:19.379000+00:00
Original source
i do have some wip extensions to the c++ wow library that skarn wrote, but i'm not very sure if i'll find the time to actually finish it. it does contain the basic building blocks for creating rather powerful declarative but customizable read/write operations for things like chunk-based files and m2s
Archived author: <o> • Posted: 2024-09-24T17:59:17.987000+00:00
Original source
it's a kind of code generator that produces versionable templates without being complex to write
Archived author: <o> • Posted: 2024-09-24T18:04:34.063000+00:00
Original source
if you move the i/o logic to c++, it might be worth looking into writing only thin wrappers for the c++ part of the addon to upload model data and just do all other processing in c++
Archived author: <o> • Posted: 2024-09-24T18:05:31.369000+00:00
Original source
my bxx addon does have things in place for writing even gui stuff in c++, though that might be taking things a bit far
![[Image: image.png?ex=690c3bca&is=690aea4a&hm=53e...7395a4fed&]](https://cdn.discordapp.com/attachments/1251865150584000512/1288200857833177149/image.png?ex=690c3bca&is=690aea4a&hm=53e305e4a5a3a26e5d457034a1a2d86873d89fd57d356c6c14a27f27395a4fed&)
Archived author: Titi • Posted: 2024-09-24T18:10:18.183000+00:00
Original source
so actually I think the only time the blender API is called is when initializing data, we could fetch the data in python and pass it to C++ the same way we already pass the mesh pointer.
we just get the corner_verts ptr before in python if possible instead
![[Image: image.png?ex=690c3bca&is=690aea4a&hm=53e...7395a4fed&]](https://cdn.discordapp.com/attachments/1251865150584000512/1288200857833177149/image.png?ex=690c3bca&is=690aea4a&hm=53e305e4a5a3a26e5d457034a1a2d86873d89fd57d356c6c14a27f27395a4fed&)
Archived author: Titi • Posted: 2024-09-24T18:11:56.966000+00:00
Original source
the blender classes aren't even really used anymore, blender separated everythnig to simple float3, int3 etc arrays instead of like MVert