Cloud's Diary (Wip)


Caine

Hardcore Member
Joined
Jun 5, 2008
Messages
4,138
Location
Netherlands
Yes, a quicksort would be better. How often is this code called and in which context? Perhaps better optimizations are possible.
 

iprice

Certified Guru
Joined
Jan 31, 2008
Messages
3,281
Age
49
Location
MK. UK. OK.
Website
Visit site
In GLBasic you can use the SWAP command to swap values. You could then just use - SWAP drawlist[j],drawlist[j+1] and ignore the Val=bit completely.

You are also using "OR" 900 times every time you run this section of code - you'd be better separating them as the code reads "IF this OR that OR the other." It has to execute the whole line, whereas a standalone "IF" line terminates immediately if the IF is false. Or use CASE - pretty much of a muchness though.
 

Steinbock

Still Fresh
Joined
Aug 18, 2006
Messages
51
Age
49
Location
Fajauna , Switzerland
Website
mountainsoft.ch
@Magic Sam

I optimised this routine now, but i can test only on evening, but i will let you know the results. Many thanks.
[doublepost=1472235293,1472209160][/doublepost]yeeeeay xD
Cloud on :wiz: is now running on stable 60FPS!!

Quicksort was helping a bit, also the advices from "iprice".
But most time was wasted with very stupid fault of me:$ (drawing sprites where not needed :D)
 

ingoreis

Advanced Member
Staff member
Joined
Jan 18, 2010
Messages
8,095
Age
39
Location
49.491276,8.423518
Wow sounds good.
I would be glad helping to build a PND with your newer Files for the Repo.
Will try the newer SDL too because Vsync is not supported by the rescent aviable Version.

I do not know anything with programming but i am glad when i can Help :D
 

Steinbock

Still Fresh
Joined
Aug 18, 2006
Messages
51
Age
49
Location
Fajauna , Switzerland
Website
mountainsoft.ch
Hi all

Here you will find a developement build for :wiz:.
It's the first level now incl. BGM.
Push button "A" to make a drop.
With "SELECT" you can change between 3 types of button layouts:
1: Southeast=RIGHT
2: Southeast=RIGHT+DOWN
3: Southeast=DOWN
feedback is welcome

Information for :p&|a: i will separate to Pandoraforum

Thanks for everyones help :)
 

Attachments

Top