Hi, about multithreading on Iphone

Previous topic - Next topic

mentalthink

Hi there,
anybody can tell me how activate on Glbasic a second thread on Iphone/Ipod 2nd generation, because I need to load some 3d models quickly.

I tried the code of hemlos about a second thread, on Windows works perfectly, but on iPhone when Xcode is compiling, give an error.

Please, anybody can help me!!!?¿.

Best regards,
Iván J.

mentalthink

HI Ocean, thanks for your reply.

Well, you tell me things what I don´t have enough knwoledges, because I don´t be a professional programmer, only a Hobbyest. I don´t kwon own works internally Glbasic in thing own mutlthreand and more...

About what you tell about great bitmaps, I don´t think what have troubles, I was making (now is stopped), a game of spaceships, and the sprites(images) of backgrounds was a little great about 1800x320 px, and this was running on gp2x, and any trouble whit the more enemies and behaviors of everyone, the game runs very smoth.

If you permit a counsil, if you can divide the huge image and make a function to load and unload from memory the images when you make the scroll, this is was I maded in this game on Gp2x.

I explain a little bit:
In example the background of my game was about if I don´t rebember bad about 4600 px in width and 420 in height, a made the next:
Divide the great Bkg in divisible equals parts.

After I put a function what made when the first part if quasi ended then load the 2nd part of scenario, and procces this in all the subdivision of the huge bakground.

Well when load the second, in my case appears in the right of the screen, when the first pixel of second part of scenarios is in example x=-10 then delete from memory the first part.

In resume, load and unload from memory.

Wel l,another question is about the format, I always make the graphics 2d in 3ds max, and save in .png, but the truble is... don´t have options for compress.

Adobe have a soft, called "Fireworks" what go down very, but very too much the weight of images, and you can choose betwen multiple combinations, in my game Fantasy Biicks, I rebember what my media folder of graphics was about 18 Mb, after cooking in Freworks, only was about 3 mb.

Well this is my experience about great graphics, I don´t kwon if can be useful.

Ocean, again thanks for reply to my thread and your explanations.

Best Regards,
Iván Jiménez.

Pd:There be attached a image for you can watch the extension of image, no was process on Fireworks, the wigth is the real from 3ds max.


[attachment deleted by admin]

mentalthink

Hi Ocean, thanks for reply.

Wow I look your application is very nice, I don´t have any idea for make something like this, congratulations.

Well about you tell me, you go about 2 lightyears before I´m. excume but I don´t kwon own resolve the doubt what you put in the thread.

An idea very poor, but it´s only graphically what I´m occurs now, is make a blend in white when makes the zoom, (likes clouds), yes... is very poor the idea, but own I say i´m not programer, I´m graphist and sometimes I found solutions own this in my 3D videos.

Welll, Ocean, sorry but I don´t can´t help you.

Best Regards,
Iván.