Game Creation Mastering Development

Bitmap BMP Reading Question: I need to read (large) 8MB 32BPP BMP Files into Memory so they may be queued for game play

class Surface { protected: Surface(); virtual ~Surface(); class IMAGE // create a discreet type to be used to instantiate queue template { public: // single bitmap image width and height unsigned short width, height; unsigned int size; // single bitmap image size DWORD* buffer; // buffer to hold a width X height _size_ image … […]

Mastering Development

Removing first index of an array [duplicate]

I have an array that i’d like to remove the first index of an array before. I’ve looked up some examples and saw that .shift() is the quickest and easiest method to use in what I am trying to accomplish. so I declare a variable stateData to equal the original array.shift my console.log log is […]

Development Game Creation

What is the use case of long range? [closed]

What is the use of setting value to long -9 quintillion (-9,223,372,036,854,775,808) to 9 quintilion (9,223,372,036,854,775,807) and with unsigned ulong 0 to 18 quintillion (18,446,744,073,709,551,615) What is the use case of these ranges in gamedev? I see one application: when the value exceeds the int range so use long so when it exceeds 2 billion […]

Development System & Network

AWS MySQL RDS Replica out of disk space suddenly

We’ve got a MySQL RDS instance running on AWS, with a replica. From Cloudwatch I can see that there was a sudden drop in free storage space, of the total allocated storage space of 100GB. How can I investigate what is using the storage? And remedies to attempt to free up the space? Free Storage […]


Setting the optimal thresholds for a multiclass random forest and gbt model in pyspark (ml) on an imbalanced dataset

Currently a Random Forest Classifier (from Spark ML) has been build on a imbalanced dataset which has the following distribution: +——-+—————-+ | score | n_observations | +——-+—————-+ | 0 | 256741 | | 1 | 13913 | | 2 | 7632 | | 3 | 15877 | | 4 | 3289 | | 5 | […]