Jump to content

  • Log In with Google      Sign In   
  • Create Account


Cache Scene or a Scene Text File?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
3 replies to this topic

#1 Irlan R.   Members   -  Reputation: 1404

Like
0Likes
Like

Posted 05 February 2014 - 10:05 AM

It's legal to cache big strings of data? eg.:
 
Shader Text File
Scene Text File
 
etc...
 
If I need to cache the objects itself I would have:
 
map<key, Scene>
 
I think is good to have just one Scene and a function inside to load it from a stream/source.


Sponsor:

#2 cozzie   Members   -  Reputation: 1548

Like
1Likes
Like

Posted 05 February 2014 - 01:38 PM

Hi.
Not sure if I understand the question, but how would you handle the data of the scene if you load it in one mega string?

#3 Irlan R.   Members   -  Reputation: 1404

Like
0Likes
Like

Posted 19 February 2014 - 12:31 PM

Hi.

Now I'm thinking...what a stupid question I did.

We need to cache the scene objects and the generated shader's programs not the code to generate them.



#4 cozzie   Members   -  Reputation: 1548

Like
1Likes
Like

Posted 20 February 2014 - 12:30 PM

Ok. Good that you solved it :)




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS