Jump to content
  • Advertisement


  • Content Count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About Nanoprobe

  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Actually, it does make sense if you want to use the same texture data, but with different parameters. You could use two texture objects with two sets of parameters and two sets of data, but that would be wasteful. Changing the texture state should be cheap, I just don't know how much so.
  2. I wouldn't be doing anything like per-poly texture state changes; I was wondering whether or not it's worth the effort of sorting states by texture parameters as well - though if in general usage it's not going to make much of an impact I doubt it's worth doing.
  3. I'm curious - does anyone know how expensive the state change is to change the parameters of a texture? For instance, changing the addressing mode from repeat to clamp, or changing filtering from nearest to linear? Are they essentially free operations, or is there much time involved? - Nanoprobe
  4. Hey I'm trying to create a macro using Boost's preprocessor library that has nested BOOST_PP_LIST_FOR_EACH's. Something akin to this: #define MACRO2(r,data,elem) elem #define MACRO1(r,data,elem) BOOST_PP_LIST_FOR_EACH(MACRO2,NULL,elem) #define LIST ( (1,(2,(3,BOOST_PP_NIL))), ( (4,(5,(6,BOOST_PP_NIL))), BOOST_PP_NIL ) ) #define MACRO BOOST_PP_LIST_FOR_EACH(MACRO1,NULL,LIST) But it doesn't work - the first FOR_EACH works fine but the nested one isn't expanded. Any ideas? [UPDATE] I managed to find a solution for the problem by rearranging the order things are done in - basically placing the FOR_EACH directly inside MACRO in place of LIST. [Edited by - Nanoprobe on November 14, 2004 5:03:30 AM]
  5. Nanoprobe

    RPC and marshalling in C++

    Thanks guys. I'm gonna try and have a look at OpenTNL. I also wanted to mention that I want to be able to use the same marshalling process from RPC to be able to execute hard-wired functions from a scripting language. That shouldn't be any more trouble should it?
  6. Hey guys, I'm interested in implementing some sort of RPC/COM system from scratch (without touching Microsoft COM, .NET, etc.) - and I have done some research to this on Google. I understand how to do it in a few ways, but I want to make it transparent - if you have an interface to a class I want to be able to use that same interface for local objects as well as for remote ones. Now I know Microsoft's COM does this, and the process of turning the function call into data that can be shot off on the network is called marshalling (if I follow). The problem is I can't find any specifics on how it's done - a search for marshalling on Google turns up a whole load of .NET stuff which I'm not interested in. I'm not even really interested in how Microsoft does it in COM, I'm just after some general information on how to turn function calls into a data stream and call those functions on the other end of the pipe without too much of a speed hit. If anyone's got some links I can look at, I'd appreciate it. :)
  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!