• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Windows (solved)Fatal Error: Can not create vertex buffer of size 98304 bytes

I

ItalloSFO

Guest
Code:
__w = 32;
__h = 24;
//__w * __h = 768 circuits
if (global.debug == true)
{
    if (__mpsize == 0 || __room_draw == true)
        return false;
      
    for(i=0;i<__w;i+=1)
        for (ii=0;ii<__h;ii+=1)
        {
            draw_rectangle(i*32,ii*32,(i*32)+32,(ii*32)+32,true);
            draw_text((i*32)+12,(ii*32)+16,"0");
        }
}
Error log:
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object oCriarRoom:

Fatal Error: Can not create vertex buffer of size 98304 bytes
9879 vertex buffers allocated with total size of 948576 KB
at gml_Script_room_draw (line 10) - draw_text((i*32)+12,(ii*32)+16,"0");
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_room_draw (line 10)
called from - gml_Object_oCriarRoom_DrawEvent_1 (line 1) - room_draw();
I found this link: http://bugs.yoyogames.com/view.php?id=16877 but not solved.
Can anyone help me?
 
Last edited by a moderator:
I

ItalloSFO

Guest
I'm not using resources 3D. Its just a for inside another for. when __w = 32 and __h = 24;
 
I

ItalloSFO

Guest
problem solved , I was drawing the text out of the room . thx.
 

icuurd12b42

TMC Founder
GMC Elder
What I gave you is the fix. the fact you are drawing less now also fixes it... but still

Why is it every time one is told to use a d3d function one replies he's not doing 3d urgh
 
Top