GLBasic V12 (was formerly V11 beta)

Previous topic - Next topic

spacefractal

Today finally testing the new version after using v11.2 (which im still have of course).

Im have tried to compile Karma Miwa to HTML 5.

Here is the result:


- SETSCREEN cause a crash.
- POLYVECTORS not working very well. Text missing is also used POLYVECTOR as well the mountian and the overlay filter.
- If im use SHOWSCREEN outside GLB_ON_LOOP, then Firebox cause the script to being to slow. Its not a problem in general gameplay at all, but.... Loading is a problem, if you want to show a loading bar. Its not really possible at all in html 5, and thinks threading is required. Loading resourse might sometimes been slow too.
- Im could not test the game its self, due landscape was not shown etc at all (due, yes, POLYVECTORS).

Howover the perforcements in the menu was quite very nice. So wrapping its could im not see a problem in the future. The html file was 12mb.

PS. Chrome (downloaded today) hanging on Preparing, and IE also not working. Same in IE. Not sure why?

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

IE wont run HTML 5 stuff unfortunately.

fuzzy70

M$ said "webgl is not secure" or something like that & won't support it. Probably why they came out with silverlight.

Lee

Sent from my HTC Wildfire using Tapatalk 2

"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)

spicypixel

Quote from: Ocean on 2013-May-22
M$ said "webgl is not secure" or something like that & won't support it. Probably why they came out with silverlight.

M$ giving reasons why they are behind again in the web race, Windows isn't secure maybe they should concentrate on that before firing bullets :D
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

fuzzy70

#289
Quote from: spicypixel on 2013-May-22
Quote from: Ocean on 2013-May-22
M$ said "webgl is not secure" or something like that & won't support it. Probably why they came out with silverlight.

M$ giving reasons why they are behind again in the web race, Windows isn't secure maybe they should concentrate on that before firing bullets :D

I don't think Windows will ever be totally secure while it is the most available OS, the bigger the market/product the more chance of hackers targeting it.

Quote from: Ocean on 2013-May-22
Quote from: fuzzy70 on 2013-May-21
M$ said "webgl is not secure" or something like that & won't support it. Probably why they came out with silverlight.

Lee

Sent from my HTC Wildfire using Tapatalk 2

wasn't it the other way around?  M$ came out with Silverlight  -  and then started saying 'WebGL is not secure" ?

May have been that way Ocean  =D, the two are linked I believe but my memory is a bit hazy on what order they came in as not a M$ follower like I used to be.

Lee
"Why don't you just make ten louder and make ten be the top number and make that a little louder?"
- "These go to eleven."

This Is Spinal Tap (1984)

DaCarSoft

Hi...

I was searching a way to solve my problems related to iPad 4/iPhone 5 problems and GLBasic 11 (last beta).

I had to create a new Xcode project to let my wrappers work without strange errors, I can't use the project generated from GLBasic. If I add my .mm wrappers file to the original GLBasic's Xcode project, Xcode won't compile (ARM7 errors). I have not tested it yet under iPhone 4 or older devices...

Also, under iPhone 5 it does not use the entire retina screen (1136 x 640), it only uses 960 x 640 dimensions like iPhone 4, I suppose that Gernot already knows it. I suppose that a little change to let GLBasic recognize this new screen size is needed until...

"Si quieres resultados distintos... no hagas siempre lo mismo" - Albert Einstein.

spacefractal

#291
did you added a blank 1136x640 startup image in xCode? Glbasic might not do that automatic.

Alsocurrectly im have a very strange slowdown issues with Windows version of Greedy Mouse, that should never been happens. When im start the game, its run only at 30fps with full cpu usage as shown here:
https://dl.dropboxusercontent.com/u/3236515/GreedyMouse/slowdown_wrong.jpg

But after a while (any from 2-3 seconds to never), its suddently change to more correct with 50fps (which Im was set it to) and only 10-15% cpu usage:
https://dl.dropboxusercontent.com/u/3236515/GreedyMouse/slowdown_correct.jpg

PS. Howover due the above issue im might fix the game to only run in 30fps mode, until both P (Paint() in ms) and M (DrawMap in ms) turns to normal.

PPS. If im use LIMITFPS 30, its seen the strange issue is gone, hm... strange.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

MrTAToad

#292
That is odd - I haven't noticed any slowdowns in the beta.

One thing it is time for though and that is multi-touch mouse input for Windows - Intel Windows 8 tablets are due soon...

Kitty Hello

@spacefractal - might be interarnally increasing arrays until the size finally fits? Try DIM in them once and then REDIM array[0] to remove elements, but keep memory intact...

Wampus

The HTML5 side of things is getting exciting. Has anyone put up any live browser games yet?

Couple of tests below I did this evening:-

A test of the isometric code thingy. Got this working in Firefox on Nexus 7 too!

PowFish in a browser. (warning: big download and takes some time to initialise so be patient)

Jonás Perusquía

I still don't have sound on Android, what about you my friends?

Anyway, thank you Kitty Hello for the update! :)
<HTML><BASIC><EC>
Be free and do good things

spacefractal

im heard about the sound bug, you need to add path to the sound files as GETCURRENTDIR$() does not work, but sound do work for sound, etc "Media/sound/whatever.wav":
http://www.glbasic.com/forum/index.php?topic=8544.msg78812#msg78812
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

spacefractal

slowdown issue:
im are now home from vaccation and looking on the strange slowdown error. By now, there is no pattern at all. Sometimes cpu usage fall to around 5 procent and have full framerate, other times, graphics paint go insane and slowdown the game and use all cpu usage. That even im idle in the game and dosent move at all and does not use any special code. Very very strange (its in Greedy Mouse and seen its only effected Windows).

something bug in SHOWSCREEN or?

Today im got a different strange error in the colored POLYVECTORS in the newst beta (not sure its happens in previous version, or its was a bug in the code):
After im draw the yellow font, then rest of the game after that call would draw in yellow too (that all commands, not just POLYVECTOR). The color in ENDPOLY did simply not reset.

Howover a nice little simple fix is do simply simply call the same POLYVECTOR with white color, before a ENDPOLY. etc something like this:

Code (glbasic) Select

POLYVECTOR PX, PY+size, aceii[tasc].x, aceii[tasc].y+fontsize, color
POLYVECTOR PX, PY+size, aceii[tasc].x, aceii[tasc].y+fontsize


Its did works here.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Wampus

spacefractal, that second problem you mentioned, is that only in Windows too?

spacefractal

im have not tested on other systems yet. But its a easy fix anyway. Im confirm all iOS before v1.3 have been repear, etc the famous iCade windows issue (those that got fixed in v1.2).

Im happy im have save all my betas, so im just countinue to use v11.2 for iOS, which works great for me. For Android you can use the newset version (im thinks the sound issue can been fixed by your self now).
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/