Saturday, January 17, 2015

Stack Allocation in Theory

Stack allocation can be useful in many field but I focus mainly on Game Development. In game development developers use the stack due to the control you have over it. Heap allocation is global but slow and therefore not very useful in game development where load-time is very important. This sample could be used in a loop where you could write while(true) where, if true, you would clear the memory and if false then you would allocate memory. This could be used for anything from an inventory system to creating a simple cube in the level editor.

Stack allocation Sample:


#pragma once

class StackAllocator
{
public:
// Pointer/Marker for stack
typedef uint32_t Pointer;
explicit StackAllocator(uint32_t byteSize_Stack); // stack allocator constructor
void* alloc(uint32_t sizeBytes);

Pointer returnPointer(); // return the pointer and put back to top of the stack
void freePointer(Pointer pointer); // Roll back pointer
void clearStack(); // Clear whole stack
};




- Danny B.
- P.S: Don't forget to follow me for more on computer and game development!

Thursday, January 15, 2015

TNGE - Top Notch Gaming Engine

TNGE (Top Notch Gaming Engine)


Hello, my name is Daniel Burkhart and I am proud to announce the creation of a brand new level editor call the Top Notch Gaming Engine or TNGE for short.

My Goal:

My goal when I set out to create TNGE was to create a game engine that could live up to the standards of a rapidly improving game industry. The idea was to create a tool set that allows for developers, mainly solo and indie, to have assess to advanced technology for free. This would allow for smaller companies to get a good start in the industry and generate a fan-base to expand and grow.

The Cost:

After I began development however, I realized that there is no way to create a truly free set of tools so I began to thing of ways to make the tools almost free. And thus I came up with the pricing model below:

  • Indie (5-15 seats)
    • 1% royalty
    • $5000 on first build + 100 annually
  • Commercial(15+ seats)
    • 1% royalty
    • 10000$ on first build + 200 annually
  • Single User
    • 20% royalty
    • 0$ on first build + no annual fee

The pricing model would allow for businesses and users to have free assess to the tools, however they would be required to pay either more royalty or annual costs + a first time build fee. This allows developers to test and create a game before ever paying a penny.

I will keep everyone updated on TNGE, Visit TNG Studios webpage for more.

Saturday, December 7, 2013

Must Have Programs - Computer Maintenance

Hello and welcome to my personal blog. In this post I will discuss programs that I have found useful from experience. All of these programs are free of charge and very useful to have around for maintenance. I have tested all programs and found them all safe and virus free.


TFC

TFC (Temp File Cleaner) will clear out all temp folders for all user accounts (temp, IE temp, java, FF, Opera, Chrome, Safari), including Administrator, All Users, LocalService, NetworkService, and any other accounts in the user folder. It also cleans out the %systemroot%\temp folder and checks for .tmp files in the %systemdrive% root folder, %systemroot%, and the system32 folder (both 32bit and 64bit on 64bit OSs). It shows the amount removed for each location found (in bytes) and the total removed (in MB). Before running it will stop Explorer and all other running apps. When finished, if a reboot is required the user must reboot to finish clearing any in-use temp files. - http://www.geekstogo.com/forum/files/file/187-tfc-temp-file-cleaner-by-oldtimer/
TFC is a program worth taking a look at. Even though it is not a company owned program it comes in handy when your computers temporary files are taking up a ton of room. This program does not come with a installer and (when you run it) will require you to reboot after every cleaning. You can find the offical download page at http://www.geekstogo.com/forum/files/file/187-tfc-temp-file-cleaner-by-oldtimer/.

NOTE: This program is very efficient and so it will not spare passwords saved on your browser.


CCleaner

CCleaner is the number-one tool for cleaning your Windows PC. It protects your privacy online and makes your computer faster and more secure. Easy to use and a small, fast download. - http://www.piriform.com/ccleaner
CCleaner is a very useful program if you find your computer filled with temporary files. I would recommend CCleaner for all PC users who use the Internet or any other programs that store temporary files. You can find the official CCleaner page at http://www.piriform.com/ccleaner you can also buy the pro version if you wish.


Registry Recycler

Registry Recycler is a free registry cleaner that scans the registry against corrupt, damaged, and invalid registry entries. There are unserviceable entries that play role in slackening your PC operations. The utility aims to repair your registry against bad registry data and threatening errors. It deeply scans the registry to find and fix errors in missing reference entries. -
http://www.registryrecycler.com/
Registry Recycler is a program used for cleaning the registry. I find this program useful for users that install and uninstall a lot of programs. you can find the download at http://www.registryrecycler.com/download.html this program is 100% free and so there is not pro version available for download at this time.


Defraggler

Use Defraggler to defrag your entire hard drive, or individual files - unique in the industry. This compact and portable Windows application supports NTFS and FAT32 file systems. - http://www.piriform.com/defraggler
Defraggler is an advanced version of the Disk Defragmenter tool included in Windows 7. Defraggler is very useful to users who handle big files which could be included in games or any other programs that store large files on your hard drive. You can find Defraggler at http://www.piriform.com/defraggler you can also buy the pro version if you wish.

Friday, December 6, 2013

Teach Yourself C++ Programming in 21 Days (Sams Teach Yourself) - 1994 Edition

Hello fellow computer programmers. I have of late been digging around my personal book collection and stumbled upon an old copy of Teach Yourself C++ Programming in 21 Days (By Sams). This book, although a little dusty, is proving very interesting to read and study some topics discussed within the paper bindings. I would recommend that, if you have not read a C++ book and need some help getting started with C++ programming that, you get this book. Even if it is not the exact edition as listed (As of today I can not find any of this edition on amazon...) you should read a modern version of this book.

If I were to rate this book I would give it a four star rating!

Some may ask why not a five star and this is the reason, all though packed with goodies I think the author could have spent more time on some topics that I feel should be explained in more depth such as memory. However I am not at all disappointed with what is included in the book hence my four star rating. So if you find yourself struggling to learn C++ then I would highly recommend this book.

Thursday, July 11, 2013

Google vs Bing Loadtimes

Of late Bing has claimed that Bing is better than Google, but is this clam true or is it just another false claim. Using the online tool http://www.webpagetest.org I have gathered results from both Bing And Google and came to my conclusion. The data bellow is listed for you to decide for yourself whether you should choose Google or Bing for your default search provider.

BING RESULTS:


Document Complete Fully Loaded
Load Time First Byte Start Render Speed Index DOM Elements Time Requests Bytes In Time Requests Bytes In
First View 0.719s 0.182s 0.384s 3272 410 0.719s 3 51 KB 3.579s 49 476 KB
Repeat View 0.666s 0.183s 0.430s 3342 410 0.666s 3 51 KB 3.696s 49 479 KB

GOOGLE RESULTS:

Document Complete Fully Loaded
Load Time First Byte Start Render Visually Complete Speed Index DOM Elements Result (error code) Time Requests Bytes In Time Requests Bytes In
1.254s 0.468s 0.801s 2.900s 1820 288 0 1.254s 5 53 KB 2.804s 12 349 KB

CONCLUSION:

My final conclusion based on the evidence above is that Google is faster by 0.775 seconds and although this may not seem like much its still proves that Bing is not the fastest search engine out there. Another interesting fact I would like to point out is that by looking at the "Requests" under the "Fully Loaded" section you may notice that Google only has 12 requests where as Bing has 49, this may be what in the end slows down Bing. There are many other neat facts within the table I have provided. Be sure to check out all my blog posts and don't forget to comment with questions or remarks about this topic.