XNA Game Development Forums
2012/05/18 05:40:08 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Some thoughts on the engine...  (Read 1701 times)
letsrock
Newbie
*
Offline Offline

Posts: 6


View Profile
« on: 2007/01/26 13:29:42 »

Hello out there...

First of all: Mike i love you! No really!  Grin
Without your tutorials i would be lost with XNA.

BUT  Wink...

I played around with your code a while now and i have a couple of points to talk about.

First of all: Performance...
I'm aware of, that the engine isn't near of completition but i think if the changes won't made yet, it could be hard to change later eh?
  • it's easy to change the foreach loops to normal for loops
  • more use of ref keyword for arguments
  • some of the collections could be simple arrays (like the Octnode child-nodes which are fixed number of Cool
I've made those and some more changes and my framerate raised up alot (about 20 frames per second).
The performance on the xbox is still very low but even there i got a boost of 5-8 frames.

Second: Cameras, (Camera-Viewports)...
-If you change the Viewport, like when changing the resolution, the viewport don't get published to the current GraphicsDevice.
-I think a Interface for the cameras would be easier to implement new cameras.
-The projection matrix don't need to be created each update/frame, just after a viewport change. Again a performance thing, sorry i'm a performance freak Smiley

Third and last: Shaders, Effects...
These are my week point,... oke, one of a lot of other but i think the weakest point of all.
But one thing, lol again a performance thingy, is: why to search each use/frame the effect/shader for an object out of the manager and don't reference it in the shader?

oh and fourth: Please, please, please give use the next tutorial... Grin

greathings from austria...
Markus
Logged
h4rdc0m
Jr. Member
**
Offline Offline

Posts: 63


View Profile WWW
« Reply #1 on: 2007/01/27 11:52:58 »

could you share your changes a we could all benefit from it. I'm also looking into optimizing the performance.
Logged
mikeschuld
Administrator
Sr. Member
*****
Offline Offline

Posts: 389


View Profile WWW
« Reply #2 on: 2007/01/27 12:36:45 »

As has been mentioned elsewhere on the forums, I will be doing an optimization tutorial on the engine at some point in the future, but for ease of understanding everything as people go along (and since this engine is a tutorial and not technically meant for real world use as is) I have chosen readability and ease of understanding of the ideas and algorithms involved in developing the engine so far.

That said, there are very many optimizations that could be done right now, and do feel free to post them more specifically so others may benefit from them as well. There will be an 'official' optimization tutorial coming up where I will probably ask in the forums for people with the know how and obsession - Wink - where they think the best optimizations would be and then out them altogether in one big change set. Thanks for taking such an interest in speeding things up btw Smiley I don't claim to be the best programmer out there nor the best designer of game engines, just giving back to the community that gave so much to me in the past 6 years.
Logged
Pages: [1]
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Hazy Mind 3D Engine Hazy Mind 3D Engine mikeschuld 0 2172 Last post 2006/07/22 15:02:05
by mikeschuld
rewriting the engine Hazy Mind 3D Engine endre 5 3321 Last post 2006/08/08 01:59:44
by Chr0n1x
how could i create a game engine? General Discussion saAction 7 3799 Last post 2006/08/25 01:45:22
by Kolo
If people want, can visit ;) nearly great and developing engine... Show Off Board satsatsat 0 2540 Last post 2006/10/27 04:18:12
by satsatsat
3d Engine-- Tutorial 2 problem. Hazy Mind 3D Engine ZebraHDH 4 2202 Last post 2006/12/03 14:20:43
by tuxdalinux
Engine Source Code Hazy Mind 3D Engine Nemo Krad 5 3006 Last post 2006/12/20 01:55:15
by Nemo Krad
Tutorial 9 :: Running the Engine on the Xbox 360 Tutorial Discussion mikeschuld 6 3491 Last post 2007/03/09 23:54:35
by Tiago
New Engine Architecture method Hazy Mind XNA Engine mikeschuld 3 1803 Last post 2007/03/11 21:09:17
by Chr0n1x
Crytek Engine 2 level editor General Discussion Cdy7e 7 2650 Last post 2007/03/15 18:55:36
by Chr0n1x
XNA ENgine sources/pdf General Discussion Maverick 3 2652 Last post 2008/04/17 01:59:11
by Maverick
Engine's performances General Discussion new.proger 2 2231 Last post 2008/12/24 00:58:36
by Nemo Krad
Have a few questions about the Component Exception in the Engine Hazy Mind XNA Engine ckslayer22 2 1552 Last post 2009/08/06 20:13:19
by InstrallFer
Application of the engine Hazy Mind XNA Engine marshdabeachy 1 1081 Last post 2010/01/04 11:37:29
by mikeschuld
Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.218 seconds with 19 queries.