Tips and Tricks

Programming is a field where tips and tricks are abundant.

IT Hares proudly present their own bag of programming tips and tricks.

C++ for Games: Performance. Allocations and Data Locality

May 23, 2016 by “No Bugs” Bunny

C++ performance

Abstract:

Allocations and related lack of spatial locality can be DAMN EXPENSIVE

Quote:

During the times of Ancient Gamers (also known as times of Atari, ZX Spectrum, and Commodore64), CPUs were running at clock speed of a single-MHz (and one operation usually took several clocks). At the same time, memory run at about the speed comparable to that of CPUs.

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.ProgrammingTips and TricksProgramming LanguagesOptimizations

Read more

Network Programming: Socket Peculiarities, Threads, and Testing

May 9, 2016 by “No Bugs” Bunny

Socket Peculiarities

Quote:

I am not saying that this architecture is the only viable one, but it does work for TCP for sure (and performs reasonably well too)

Another Quote:

The whole task of optimizing performance beyond, say, 20-50K packets/second per box tends to be Quite Elaborated, and involves quite a few things which are platform- and hardware-dependent.

Filed under: Book: D&D of MOGs1st beta of Vol. IV-VIOn.System ArchitectureDistributed systemsOn.ProgrammingTips and TricksNetwork Programming

Read more

Client-Side. Graphics from "D&D of MMOG" upcoming book

November 23, 2015 by “No Bugs” Bunny

BB_part066_BookChapter005a_v4.png

Quote:

Making 3D work is not easy to start with, but making it look good is a major challenge.

Another Quote:

In such cases of dual visual interfaces, it is paramount to have Logic-to-Graphics layer as described above

Filed under: Book: D&D of MOGs1st beta of Vol. I-IIIOn.ProgrammingTips and Tricks

Read more

2D Scaling Basics for Games and Web Design

August 3, 2015 by “No Bugs” Bunny

Mona Lisa Being Scaled using Crane

Abstract:

2D scaling is a headache.

Quote:

For us (as developers) it is important to know that the difference does exist, and that we should be ready to store graphics with larger sizes even when we personally don't see the need to do it.

Filed under: On.ProgrammingTips and Tricks

Tagged With: 2Dweb development
Read more