I have a resource manager that loads and returns resources. Currently I just return shared_ptrs for the resources I create, but I'm thinking about going over to using something like simple handles, whereby you get an ID you use to access the resource. The reasons are more explicit ownership and also less overhead rather than using smart_ptrs.
Are resource handles the most efficient way to access resources, should I stick with shared_ptrs or are there other alternatives?
The reason I am asking is that I was reading this article http://www.gamedev.net/page/resources/_/technical/game-programming/a-simple-fast-resource-manager-using-c-and-stl-r2503 which made me wonder if I should implement something like that instead.
Edited by KaiserJohan, 18 July 2013 - 04:42 AM.