B3D sdk and 'threaded build"
BlitzMax Forums/BlitzMax Programming/B3D sdk and 'threaded build"
| ||
When I switch on 'threaded build' I get an error on the line: Import blitz3d.blitz3dsdk The error is: "Compile Error Can't find interface for module 'blitz3d.blitz3dsdk' " Any idea? |
| ||
If you want to use a module in threaded mode, I think you have to build it while in threaded mode. |
| ||
This is because threaded version of blitz3dsdk module is not built. I have no idea whether it comes with source code. If so, you can use the command: bmk makemods -h blitz3d to build threaded version up. |
| ||
Obviously I'm the least technical programmer ever but I know nothing of this command line stuff. I don't think I've ever built a module. Where do I type that? |
| ||
You can just set BlitzMax to 'Threaded Mode' and then 'Build Modules' or 'Rebuild All Modules'. |
| ||
Those options are greyed out for me. |
| ||
Those options are greyed out for me. You need MinGW installed. (for C/C++ compilation of the modules) If you have MinGW installed and it is still greyed out, you need to set up the Environment variables + path, which Mark mentions in this post. |
| ||
That did the trick. Cheers Brucey (and everyone else). |
| ||
just keep in mind that not more than your main thread can access the SDK or it will just blow up |
| ||
Right. So does that mean I can't load textures in the background? |
| ||
Right. So does that mean I can't load textures in the background? Kind of... but you can have a thread in the background pre-load textures into a memory bank, which can then be accessed by the main thread to load them in. |
| ||
Hmm.. Probably not worth the effort for my current project. Cheers. |
| ||
@JP : http://www.naked-war.com sends me to "lunarpages.com" |
| ||
Have you considered seeing if something like naked war is a good fit for a mobile phone market or facebook ? :) |