Author Topic: Terror in the maze V44 (and newer)  (Read 2061 times)

0 Members and 1 Guest are viewing this topic.

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Terror in the maze V44 (and newer)
« on: May 14, 2021, 10:41:27 am »
Hello !
I  dared to open new topics for the game because there was another leap of orders of magnitude.
The essence of the game is the same, but a lot has changed:

-several types of dragons, (the program colors 3 basic dragons in many ways)
-the textures of the playing field are completely different. Color mixing still determines the position. I used several transparent, semi-transparent images.
-The gaming experience depends on many little things. Whenever possible, all events should be easily perceptible to their weight. With sounds, pictures, music, physics. I’ve put in a lot of otherwise unnoticeable little things that don’t show up, but if it weren’t there, it would be missing for the experience.

In the menu you can adjust the texture and mipmapping.
Unfortunately, if the computed images take up a lot of space (high texture, high mipmapping, large maze), I get this during the game: “list_add: failed to allocate new buffer, structure size”.

That’s why I opened a new post, because you may already see “terror in” and you’re already flipping through. And so this problem doesn’t get to anyone who could help.
So everything in moderation! Try not to pull the texture to the maximum, and then it will not stop with an error.

I would still have an idea, I just think I'll type in because I have to wait a long time for the exe.

(20210517)


download v56 (20210519)
https://drive.google.com/file/d/1ktD58IzbPfL3Nssx1cPz2qa1i6K-tyMy/view?usp=sharing

download v60 (20210520)
https://drive.google.com/file/d/1R18dvwp3DJjWxzaq4FtyF1zxAyXjDIId/view?usp=sharing
« Last Edit: May 19, 2021, 06:14:55 pm by MasterGy »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Terror in the maze V44 (and newer)
« Reply #1 on: May 14, 2021, 12:42:55 pm »
Wow! just out of curiosity how many image file are you using?

For example, I think you are not creating that Yin Yang image...
« Last Edit: May 14, 2021, 01:33:04 pm by bplus »

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: Terror in the maze V44 (and newer)
« Reply #2 on: May 14, 2021, 02:16:26 pm »
there are a lot of pictures in it, I couldn’t even tell you how much. plus even the program creates a lot of copies because of the mipmap. if i need a picture or animation then google. "dragon gif", "monster gif" ... anything ...

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: Terror in the maze V44 (and newer)
« Reply #3 on: May 16, 2021, 05:37:05 am »
Hello ! Could someone help me ? If I set the texture high in the menu, it does unpredictable things. After a few minutes, the program either stops, can't find an image (invalid handle), doesn't stop, just doesn't show some images, or if I set the texture to maximum, 1-2 seconds after the program starts "list_add: failed to allocate new buffer, structure size ”message.

If I set the texture quality to low, the game runs perfectly. What should I do ?
« Last Edit: May 16, 2021, 05:38:27 am by MasterGy »

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: Terror in the maze V44 (and newer)
« Reply #4 on: May 17, 2021, 01:34:13 pm »
i did the loading part to see separately what how much time to load. Bplus asked, after that I also wondered how many pictures will be in the memory and how big they are in total. For the largest maze, starting the game with medium textures, 4755 pieces of images are generated, for a total of 320Mbyte in memory. :) I intentionally posted this on the "loader", it can be read on loading, it can be seen in the video.

I also added to the game that if the dragon is near the maze, then there, in that place, rearrange the position of the points a bit. This creates the illusion that the space is curved by the dragon and its proximity is more perceptible. Just a few lines throughout, yet it adds a lot to the whole.
Utilizing the same trick, the game starts with a little animation. The maze curves into place.

The shutdown is still unfortunately, maximum mipmap, maximum texture will stop the program. Is there a limit to the amount of memory you can use?

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: Terror in the maze V44 (and newer)
« Reply #5 on: May 18, 2021, 07:34:53 am »
My problem is similar in the next topic. "_CopyImage crashing my program after a while, can somebody please help?"
could anyone explain what happens then? I'm affected by the same problem. It loads the images and then reads them in the game cycle. He no longer takes new pictures there, he just uses them. Why is the memory size increasing? Felippe Heitor gave me a very good idea by being able to see the amount of allocated memory in the task manager. So I can already see that it grows, it grows, then it comes around exactly 1Gb "" list_add: failed to allocate new buffer, structure size. "I always use _FREEIMAGE, I pay close attention to it. I don't understand.

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: Terror in the maze V44 (and newer)
« Reply #6 on: May 19, 2021, 07:12:22 am »
the madness is bypassing already. I’ve already done ERASE after every REDIM, if I don’t have to. I eliminated REDIMs in the main cycle. In principle, no new memory space is created. In principle ... yet memory consumption is growing. I’m already considering cutting it all up, dealing with it for months, and now I’m stuck here and I don’t even understand the whole thing. "small" works, "large" doesn't work? What kind of nonsense is this in programming?

Offline MasterGy

  • Seasoned Forum Regular
  • Posts: 327
  • people lie, math never lies
    • View Profile
Re: Terror in the maze V44 (and newer)
« Reply #7 on: May 19, 2021, 07:18:25 am »
I also tried to store all the thousands of hardware images in a single array. Immediately after loading, it draws nicely, and memory consumption does not increase. Then the main cycle never turns over, already “list_add: failed to allocate new buffer, structure size.” So nothing about drawing was preceded by it, just calculations, and then it stops? I don’t understand the whole thing.