Search found 622 matches

by SPH
Wed Mar 11, 2026 6:58 pm
Forum: Announcement
Topic: PureBasic 6.40 beta 2 is ready, surprise inside !
Replies: 176
Views: 39542

Re: PureBasic 6.40 beta 2 is ready, surprise inside !

With my laptop which is 3 years old max :

6.30b3
Litteral assign: 209 ms
Big litteral assign: 497 ms
Ucase litteral assign: 1328 ms
Ucase assign: 162 ms
Ucase complex assign: 341 ms
Str assign: 149 ms
Str concat: 215 ms
Final length = 264292
Large concat: 113 ms
Comparison dynamic buffer: 74 ms ...
by SPH
Sun Mar 08, 2026 10:26 am
Forum: Bugs - IDE
Topic: "Coloring" option in the IDE
Replies: 3
Views: 177

Re: "Coloring" option in the IDE

Ah, okay, I checked the link.

Could we have this function natively in PB ?
by SPH
Sat Mar 07, 2026 9:53 pm
Forum: Bugs - IDE
Topic: "Coloring" option in the IDE
Replies: 3
Views: 177

Re: "Coloring" option in the IDE

Marker?
How does it work?
Which function key?
by SPH
Sat Mar 07, 2026 3:29 pm
Forum: Bugs - IDE
Topic: "Coloring" option in the IDE
Replies: 3
Views: 177

"Coloring" option in the IDE

Hi,
I don't know what I did, but the IDE is behaving strangely for the first time:
I have a multi-page code snippet, and when I double-click on (for example) "debug", all the "debug" instructions turn green. I already knew that. Now, if I click on (for example) "plot", all the "plot" instructions ...
by SPH
Sat Feb 28, 2026 10:36 pm
Forum: Game Programming
Topic: Game test v0.01
Replies: 256
Views: 64931

Re: Game test v0.01

Is there a 3D scene version?
For now, we only have static images.
by SPH
Sat Feb 28, 2026 9:50 am
Forum: 3D Programming
Topic: Polygon editor
Replies: 8
Views: 2602

Re: Polygon editor

Hmm, at first glance, you also can't make concave polygons (for example: a very 'hollow' crescent moon). That's okay...
by SPH
Mon Feb 23, 2026 9:03 am
Forum: Game Programming
Topic: Game test v0.01
Replies: 256
Views: 64931

Re: Game test v0.01

Great!
Will this be a future game?
by SPH
Wed Feb 18, 2026 9:40 pm
Forum: 3D Programming
Topic: Polygon editor
Replies: 8
Views: 2602

Re: Polygon editor

I'm using an instruction that only creates convex polygons. I'll look at the difference between my instruction and yours (and its execution speed)!!!
by SPH
Wed Feb 18, 2026 9:06 am
Forum: 3D Programming
Topic: Polygon editor
Replies: 8
Views: 2602

Re: Polygon editor

Interesting.
Did you encounter any difficulty creating concave polygons?
by SPH
Tue Jan 13, 2026 6:17 pm
Forum: Coding Questions
Topic: #PB_Sprite_AlphaBlending story [Solved]
Replies: 2
Views: 1574

Re: #PB_Sprite_AlphaBlending story

Thank you very much !!
by SPH
Tue Jan 13, 2026 6:00 pm
Forum: Coding Questions
Topic: #PB_Sprite_AlphaBlending story [Solved]
Replies: 2
Views: 1574

#PB_Sprite_AlphaBlending story [Solved]

If I do this:
LoadSprite(1"D:\1.bmp", #PB_Sprite_AlphaBlending)
and then at some point I do this on the sprite :
Plot (10,10,0)
how can I treat the plot as a real hole in the sprite where color zero is transparent?
I've tried, but the dot is black and not transparent...

:shock: :arrow: :|
by SPH
Mon Jan 12, 2026 10:52 pm
Forum: Coding Questions
Topic: Simpliest method compare numbers [Resolved]
Replies: 29
Views: 7383

Re: Simpliest method compare numbers


Easier :
cmb=20

Dim bank(cmb)
For i=1 To cmb
bank(i)=Random(200)
Debug bank(i)
Next
Debug "==="
;;;


SortArray(bank(), #PB_Sort_Ascending)
plus_petit=bank(1)


Debug plus_petit



Debug "= W A I T ="

For boucle=0 To 1

cmb=12000000

Dim bank(cmb)
For i=1 To cmb
bank(i)=Random(200+boucle ...
by SPH
Mon Jan 12, 2026 5:42 pm
Forum: Coding Questions
Topic: Simpliest method compare numbers [Resolved]
Replies: 29
Views: 7383

Re: Simpliest method compare numbers

Look that KCC :

Code: Select all

cmb=20

Dim bank(cmb)
For i=1 To cmb
  bank(i)=Random(200)
  Debug bank(i)
Next
Debug "==="
;;;

plus_petit=bank(1)

For i=1 To cmb
  If bank(i)<plus_petit
    plus_petit=bank(i)
  EndIf
Next
;;;

Debug plus_petit
Kiss :wink:
by SPH
Mon Jan 05, 2026 10:56 pm
Forum: Announcement
Topic: Rapid Object Mapping
Replies: 36
Views: 25485

Re: Rapid Object Mapping

PS : JHP, you have lost your avatar !!
by SPH
Mon Jan 05, 2026 10:51 pm
Forum: Tricks 'n' Tips
Topic: Gif animated in canvas
Replies: 7
Views: 4437

Re: Gif animated in canvas

Ok on W11 and PB 6.30 b3 :wink: