Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7578293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:23:51+00:00 2026-05-30T17:23:51+00:00

Gamemaker is a neat tool which allows for some good RAD. However it has

  • 0

Gamemaker is a neat tool which allows for some good RAD. However it has quite a few shortcomings. One of those is the lack of a good standard library.
True you have the “ds_*” type members, but those are quite lacking. The priority queue for example is only a read-once type (it’s destroyed in the process). The sort function for lists uses a terrible slow method. (While never officially stated, I suspect it uses bubble sort). And there simply is no build in method for linked lists. On top of that simple member access is slower than it should be.

Now one could actually create those things in the native language. However it becomes quite slow (as the interpreter is slow). I.e. writing a quicksort/heapsort was in many cases slower than the built in sort. Writing my own “linked lists” -using special objects for each node- had too much overhead. (each object in gamemaker does lots of things each step).

So now I’m looking at writing a C++ layer for the standard library. I hope to add some extra functionality (hash tables & linked lists are the prime target) as well as allow for better algorithms. For most of the problems I already have an idea how to tackle it, except for 1 big problem:

All C++ libraries use “iterators” to identify an item. Gamemaker only allows for doubles (or c-style character arrays) to be passed to and from dlls.
How would I circumvent this? Not returning the index of an item is quite silly, so I have to find a way to map those iterators into doubles.

What is a good idea for this? Am I best off simply rewriting all datastructures so the iterators are guaranteed to have a 1 on 1 map to double (or actually double + datastructure index)? Or are there better methods?

P.s. why isn’t the gamemaker tag there yet?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:23:52+00:00Added an answer on May 30, 2026 at 5:23 pm

    The only way to “store” a data structure in a variable in Game Maker is with a handle or ID. You’ll notice that using the built-in data structures does the same thing, using integers.

    The method I would try would be to store all the pointers to your data structures along with their IDs in a hashtable. Then, you pass the ID between GM and the DLL, since Game Maker doesn’t need to know the state of the data structure unless you ask for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i've created a dll for gamemaker. dll's arrays where really slow so after asking
I've been interested in Visual Programming Languages (VPL) for a while. However I've hardly
I was working on an xcode project called Test, which I then made a
When I was younger, I used a tool called Game Maker a lot. I
I am looking to setup a transition between two levels(after one level is complete,
If you've ever used the tool Game Maker, it's a bit like that. I
So, I have a class called Stone. In Stone.h i have those lines: @interface
I am making a DLL to extend Game Maker, but it has to be
How to do you make Gesture Recognizers only accessible from one scene? I have
I have developed a Cocos2d-X app with XCode which works perfectly when I launch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.