Jump to content

Second-threaded loader


VeTaL
 Share

Recommended Posts

It would be really cool if you'd add a function that would load models/terrains in engine format into memory, and then create them in engine in a little time just copying them.

This would add very nice for dynamic creation of objects and fast model loading in general.

Working on LeaFAQ :)

Link to comment
Share on other sites

I see it in this way

Here is memory while Leadwerks is starting:

| Leadwerks DLL | OpenGL, all other stuff | ....

 

Memory while Leadwerks load entities by default:

| Leadwerks DLL | OpenGL, all other stuff | Leadwerks objects: entities, first terrain | ....

 

Now game is started, player moved ahead and some additional entities would be needed in the nearest time (not now)

| Leadwerks DLL | OpenGL, all other stuff | Leadwerks objects: entities, first terrain | Needed entity, that loading with loader, for example terrain | ....

 

Then, when new object is needed, Leadwerks just copy it to its resources

| Leadwerks DLL | OpenGL, all other stuff | Leadwerks objects: entities, first terrain + newly loaded terrain | Loader is waiting | ....

 

Next step is to free unneeded terrain

| Leadwerks DLL | OpenGL, all other stuff | Leadwerks objects: entities, newly loaded terrain | Loader is waiting | ....

 

The same thing would be great not only for terrain in RPG, but also in FPS (player comes to first room, and objects from second room is loaded in runtime) and the other games.

 

----

 

Masterxilo, didnt see your answer.

So, i'm the third :blink:

Working on LeaFAQ :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...