Click here to Skip to main content
15,930,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Vector of Pointers Pin
Matthew Faithfull4-Jun-07 2:09
Matthew Faithfull4-Jun-07 2:09 
GeneralRe: Vector of Pointers Pin
Kevin Brydon4-Jun-07 2:17
Kevin Brydon4-Jun-07 2:17 
GeneralRe: Vector of Pointers Pin
Matthew Faithfull4-Jun-07 2:38
Matthew Faithfull4-Jun-07 2:38 
GeneralRe: Vector of Pointers Pin
Kevin Brydon4-Jun-07 2:39
Kevin Brydon4-Jun-07 2:39 
GeneralRe: Vector of Pointers Pin
CPallini4-Jun-07 2:14
mveCPallini4-Jun-07 2:14 
GeneralRe: Vector of Pointers Pin
Kevin Brydon4-Jun-07 2:23
Kevin Brydon4-Jun-07 2:23 
GeneralRe: Vector of Pointers Pin
Maximilien4-Jun-07 3:05
Maximilien4-Jun-07 3:05 
AnswerRe: Vector of Pointers Pin
Rajkumar R4-Jun-07 3:41
Rajkumar R4-Jun-07 3:41 
Hi,
sure STL is not graphic API,

These data structure has tradeoffs for speed and also memory consumption is high.
consider accessing a item of vector; it involves more than one indirection of reference and more than one call path
vector<char> vecObj; char c = vecObj[3] is very slow compared to a simple
char Array[10]; char c = Array[3];

For 3D graphics, rendering millions of triangles in fraction of second,
the data structure that keeps the data should be fast,
When you get time try using directX, they use their own data structure's for these purpose which is usually a buffer, and also possibly they manage to keep data in hardware cache.

Best Regards
Raj
GeneralRe: Vector of Pointers Pin
Kevin Brydon4-Jun-07 5:16
Kevin Brydon4-Jun-07 5:16 
GeneralRe: Vector of Pointers Pin
Stephen Hewitt4-Jun-07 15:04
Stephen Hewitt4-Jun-07 15:04 
GeneralRe: Vector of Pointers Pin
led mike3-Mar-08 6:32
led mike3-Mar-08 6:32 
GeneralRe: Vector of Pointers Pin
Stephen Hewitt4-Jun-07 15:01
Stephen Hewitt4-Jun-07 15:01 
AnswerRe: Vector of Pointers [modified] Pin
Rajkumar R4-Jun-07 18:49
Rajkumar R4-Jun-07 18:49 
GeneralRe: Vector of Pointers Pin
Stephen Hewitt4-Jun-07 19:00
Stephen Hewitt4-Jun-07 19:00 
GeneralRe: Vector of Pointers Pin
Rajkumar R4-Jun-07 19:18
Rajkumar R4-Jun-07 19:18 
GeneralRe: Vector of Pointers Pin
Stephen Hewitt4-Jun-07 19:29
Stephen Hewitt4-Jun-07 19:29 
GeneralRe: Vector of Pointers Pin
Rajkumar R4-Jun-07 19:57
Rajkumar R4-Jun-07 19:57 
GeneralRe: Vector of Pointers Pin
Stephen Hewitt4-Jun-07 20:11
Stephen Hewitt4-Jun-07 20:11 
Questionset 24 hr time format using Date Time Picker Control Pin
abhiakude4-Jun-07 0:28
abhiakude4-Jun-07 0:28 
AnswerRe: set 24 hr time format using Date Time Picker Control Pin
Rajkumar R4-Jun-07 0:40
Rajkumar R4-Jun-07 0:40 
GeneralRe: set 24 hr time format using Date Time Picker Control Pin
abhiakude4-Jun-07 1:31
abhiakude4-Jun-07 1:31 
QuestionChange view into MDIFrame Pin
baerten4-Jun-07 0:08
baerten4-Jun-07 0:08 
JokeRe: Change view into MDIFrame Pin
Jhony george4-Jun-07 1:43
Jhony george4-Jun-07 1:43 
GeneralRe: Change view into MDIFrame Pin
baerten4-Jun-07 2:28
baerten4-Jun-07 2:28 
QuestionHow to check wireless net connection? Pin
oustar3-Jun-07 23:57
oustar3-Jun-07 23:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.