Search found 245 matches

by Project5
Wed Aug 29, 2007 2:39 pm
Forum: Using OGRE in practice
Topic: Multiplayer Servers
Replies: 8
Views: 1774

To answer your other question of updates per second, if I recall correctly Quake 3 updates network state 13 times a second, and that's a twitch game. If your game play is going to be slower, you can get away with far less.

--Ben
by Project5
Wed Aug 22, 2007 2:06 pm
Forum: Back to Basics
Topic: get/set Properties for Object, without known the Methods.
Replies: 60
Views: 5674

Two other approaches to consider are Luabind's and FUBI's , the former if you want manual control of what gets bound, and the latter if you'd rather walk the exports table for your platform than parse C++ code for the auto approach. I'm using the former since it gives more control (and I can tag att...
by Project5
Sun Aug 19, 2007 5:02 pm
Forum: Google Summer Of Code
Topic: [SoC 2007] Custom Memory Heaps and Object Allocators
Replies: 37
Views: 21374

Hoard does use a per thread heap, and if I recall correctly is older than that Patent. You'd need to read it through to check that some of the Hoard guys aren't on the author list though.

--Ben
by Project5
Mon Aug 13, 2007 4:47 pm
Forum: Showcase
Topic: GraLL - Take The Test (Update: 18th August 2007)
Replies: 110
Views: 29949

This is really well put together, and reminds me of marble madness. I love those types of games :-) I was playing around with it, and noticed three things. First, it would be really cool to have left and right strafe movement keys. Second, I was testing the ice earlier, and found that it does have s...
by Project5
Mon Aug 13, 2007 4:36 pm
Forum: Back to Basics
Topic: get/set Properties for Object, without known the Methods.
Replies: 60
Views: 5674

@Sinbad: I'm using a runtime conversion table too, afaik there's no way around it when using generic containers similar to boost::any, since at compile time you'd only have the source type or the target type, but not both.

--Ben
by Project5
Mon Aug 06, 2007 3:42 pm
Forum: Back to Basics
Topic: Using the volatile keyword for simple concurrent apps
Replies: 3
Views: 717

This is a good article on the design of a lightweight mutex. Their final design is windows only using events, but the earlier ones (especially the one with exponential backoff) just use volatile longs. It's a good read if you don't need a full critical section in certain places, like protecting one ...
by Project5
Wed Jul 11, 2007 2:49 pm
Forum: General Discussion
Topic: Ogre Variable and Class Naming
Replies: 59
Views: 3918

For what it's worth, I think that member function pointer use and the ->* and .* operators are far uglier than the :: one :-)

--Ben
by Project5
Fri Jul 06, 2007 2:41 pm
Forum: Back to Basics
Topic: Using exported classes from a DLL - memory management
Replies: 11
Views: 1362

@xavier: about separate dlls having their own heap space, isn't that only when you're statically linking to the runtime? If I recall correctly the runtime contains the default new and delete operator, and if you dynamically link to it, I thought that all allocation went through one place anyway. If ...
by Project5
Tue Jun 26, 2007 3:01 pm
Forum: General Discussion
Topic: software patents: are they moral, how much do they cost
Replies: 35
Views: 2399

@Praetor: it can just be ideas without an actual implementation, or more specifically, the 'business method' type of patents just require a process and not a thing. That's why I called it patenting of ideas before. Because an implementation is not a strict requirement, the patent office also lets th...
by Project5
Mon Jun 25, 2007 4:17 pm
Forum: General Discussion
Topic: software patents: are they moral, how much do they cost
Replies: 35
Views: 2399

Again, I'm not a lawyer, this is secondhand. The trouble as I understand it is that patents were created to defend 'things' and not 'ideas'. Following a ruling (in a case which I'm forgetting right now) software was deemed patentable by a court decision and not by law. From the other side, in Turing...
by Project5
Sun Jun 24, 2007 4:17 pm
Forum: General Discussion
Topic: software patents: are they moral, how much do they cost
Replies: 35
Views: 2399

@johnpus: From a research standpoint, they look as good on a resume as publishing a paper in a good journal, even if you don't have the clout to enforce it from a business perspective. @Praetor: I'm going to preface by saying I'm not a patent lawyer, this is secondhand from one so a few things could...
by Project5
Sat Jun 23, 2007 6:46 pm
Forum: Help
Topic: wich IDE/Compiler/etc. do you use?
Replies: 12
Views: 1009

You don't need to send a redistributable with VC 2005 if you build your app with manifests set to allow isolation. Look on msdn for 'deploying using xcopy'.

--Ben
by Project5
Sun Jun 17, 2007 4:25 pm
Forum: Showcase
Topic: Kong teaser
Replies: 19
Views: 4705

I like "Capture the banana" mode :-P

--Ben
by Project5
Thu Jun 14, 2007 3:22 pm
Forum: Back to Basics
Topic: Function addresses and jump tables, not on windows?
Replies: 2
Views: 701

I tried __FUNCTION__ previously, and it works well right until you have an overloaded function, and then the names are non unique. That's why I started looking into EIP and RIP :-) In getting the instruction pointer system working, I never noticed relocating dlls in memory as an issue, because the i...
by Project5
Wed Jun 13, 2007 2:56 pm
Forum: Back to Basics
Topic: Function addresses and jump tables, not on windows?
Replies: 2
Views: 701

Function addresses and jump tables, not on windows?

I'm working on a problem right now where I need a 'you are here' sort of functionality, where a function can retrieve the instruction pointer register (EIP or RIP) and compare against a sorted list of function pointers and then be able to tell which one execution is in. On windows, if you get a func...
by Project5
Mon Jun 11, 2007 4:11 pm
Forum: Using OGRE in practice
Topic: The usefulness of the MemoryManager in Release Mode
Replies: 7
Views: 1204

You can also just get a copy of Fluid Studios' mmgr and add it to your project once Ogre removes it from theirs. Even with pluggable allocators, new or malloc are being called somewhere and can be intercepted just the same. c4dillus mentioned that his system will have the capability of profiling all...
by Project5
Sun May 27, 2007 4:02 pm
Forum: Google Summer Of Code
Topic: [SoC 2007] Custom Memory Heaps and Object Allocators
Replies: 37
Views: 21374

@mycatboys: That question sounds a little familiar. Scroll up a little and you'll see it answered too :-P From how c4llidus has described the project, this is not allocator in and of itself, it's a method for assigning allocators to Ogre. Presumably it'll have a few defaults to choose from, but that...
by Project5
Sat May 19, 2007 5:16 pm
Forum: Back to Basics
Topic: A question of c++destructors and memorey cleanup...
Replies: 31
Views: 2564

If you want to implement your own reference count, have a look at boost::intrusive_ptr. This is useful if you can't get away from raw pointers in some places, as boost::shared_ptr doesn't play well with them.

--Ben
by Project5
Wed May 16, 2007 2:33 pm
Forum: Using OGRE in practice
Topic: Embedding a scripting language in OGRE - too many choices!
Replies: 53
Views: 6255

@voxel: I've used Lua with Luabind, Squirrel with Sqplus, and then Ruby (using an approach like RubyNative to bind to c++). The biggest piece of advice I can give for choosing is to just set up a few test projects and muck about with the different languages and find the one you like more. They're al...
by Project5
Thu May 10, 2007 2:11 pm
Forum: Help
Topic: [Solved] - Creating a SharedPtr to 'this'
Replies: 6
Views: 470

Shared pointers and 'this' don't work well together, I'd recommend looking into boost::intrusive_pointer instead. Because the shared count is stored in the object instead of the pointer, you can mix shared and raw pointers freely without losing the reference count, the raw ones just act like weak po...
by Project5
Sat May 05, 2007 5:36 pm
Forum: General Discussion
Topic: the size of lib is too large
Replies: 10
Views: 1259

http://upx.sourceforge.net/

That can get Ogre's dlls down to about 3mb.

--Ben
by Project5
Wed May 02, 2007 2:17 pm
Forum: General Discussion
Topic: Buying laptop (outside USA, Canada).
Replies: 15
Views: 1657

If you look up the ODM of the laptop in question you should be able to get it locally. For instance, ASUS, MSI, Uniwill, and a few other companies supply a lot of small laptop boutiques, so it's just a matter of finding a store near you selling the same model as the one you wanted. Hope that helps, ...
by Project5
Tue May 01, 2007 2:30 pm
Forum: Google Summer Of Code
Topic: [SoC 2007] Custom Memory Heaps and Object Allocators
Replies: 37
Views: 21374

That sounds great, I'm a huge fan of policies :-)

On the idea of profiling, will there also be hooks to catch function/file/line information to allow for a debug memory leak checker policy?

--Ben
by Project5
Tue Apr 24, 2007 2:44 pm
Forum: Google Summer Of Code
Topic: [SoC 2007] Custom Memory Heaps and Object Allocators
Replies: 37
Views: 21374

Are you planning on using a mutex for thread safe access to these allocators or having a separate heap per thread?

--Ben
by Project5
Tue Apr 10, 2007 3:09 pm
Forum: Back to Basics
Topic: [Solved] Weird template programming problem.
Replies: 12
Views: 1335

@mirlix: to your question of assigning Foo::bar2 to a boost::function of different type, it produces a compile time error. to your other question, boost::bind uses _1, _2, etc to represent arguments that you do not want to provide default values for. You can also reorder the arguments by putting the...