There are two attachments named gunderak_sky.png and gunderak_floor.png, they are just 1x1 images, blue and gray respectively.
Best of luck clicking them.
My desire is to have people learn from this, and possibly build some minigames in GS2! As I don't have the time anymore to do this.
__________________
Gund for president.
Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Nice work, but a few things that would optimize it and probably make it run a lot smoother:
- You don't seem to be clearing the drawing panel each cycle? Means you're drawing an insane amount of stuff in the drawing panel that should drop fps more and more the longer you run it.
- Instead of redrawing the world every 0.05 cycle, check if the player has moved or tilted his viewpoint and only redraw the world if required. Would increase fps by loads!
I bet if you did both of the above, drawing floors wouldn't be that laggy either.
__________________
Follow my work on social media post-Graal:
- You don't seem to be clearing the drawing panel each cycle? Means you're drawing an insane amount of stuff in the drawing panel that should drop fps more and more the longer you run it.
Isn't the drawing panel simply a buffer? If it is, not clearing it is the preferred method, as clearing a buffer is costly. Since you're filling it entirely again anyway, you don't have to clear it.
Nice work, but a few things that would optimize it and probably make it run a lot smoother:
- You don't seem to be clearing the drawing panel each cycle? Means you're drawing an insane amount of stuff in the drawing panel that should drop fps more and more the longer you run it.
- Instead of redrawing the world every 0.05 cycle, check if the player has moved or tilted his viewpoint and only redraw the world if required. Would increase fps by loads!
I bet if you did both of the above, drawing floors wouldn't be that laggy either.
With the not rendering unless movement is inputted, could potentially increase the speed, not sure though..
Quote:
Originally Posted by Crow
Isn't the drawing panel simply a buffer? If it is, not clearing it is the preferred method, as clearing a buffer is costly. Since you're filling it entirely again anyway, you don't have to clear it.
This is exactly what I thought.
Quote:
Originally Posted by PlanetOscar
Alpho was (and maybe still is) working on something that would enable him to do something in 60 fps
Would have to be something external.
__________________
Gund for president.
Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
DrawingPanels are indeed a buffer so no you don't need to clear it before drawing more. Also even if Graal ran at 60fps I doubt you'd be able to achieve that with custom render engines like this... so even 60fps Graal running this would at most probably achieve 20fps.
Have you experimented with many output methods? I first tried mode7 rendering with a drawingpanel and even very small resolutions had pretty poor performance. If you haven't tried, rendering with showimgs might give better performance. However admittedly I wasn't running a render per every horizontal line(assuming that's your method). However you might be able to get away with rendering much less if you do some math with showpoly's(since you can apply textures to them).
DrawingPanels are indeed a buffer so no you don't need to clear it before drawing more. Also even if Graal ran at 60fps I doubt you'd be able to achieve that with custom render engines like this... so even 60fps Graal running this would at most probably achieve 20fps.
Have you experimented with many output methods? I first tried mode7 rendering with a drawingpanel and even very small resolutions had pretty poor performance. If you haven't tried, rendering with showimgs might give better performance. However admittedly I wasn't running a render per every horizontal line(assuming that's your method). However you might be able to get away with rendering much less if you do some math with showpoly's(since you can apply textures to them).
I haven't tried with showimgs or showpolys yet, since I left Zone iPhone I also have no where to test code on either
Would be interesting to see if it's any better performance wise.
I also wanted to implement sprites, never got around to that since I was usually busy working on either the in-game forum or VIP items etc...
__________________
Gund for president.
Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
If anyone have fun projects like this, I will be happy to offer a free server to play with.
A new client for iOS and Android is on testing and should be released in 3 weeks, you will be able to do 60fps with it and any server will be able to use it.
If anyone have fun projects like this, I will be happy to offer a free server to play with.
A new client for iOS and Android is on testing and should be released in 3 weeks, you will be able to do 60fps with it and any server will be able to use it.
Sounds interesting..
Any chance I could take you up on that offer?
__________________
Gund for president.
Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
If anyone have fun projects like this, I will be happy to offer a free server to play with.
A new client for iOS and Android is on testing and should be released in 3 weeks, you will be able to do 60fps with it and any server will be able to use it.
A new client for iOS and Android is on testing and should be released in 3 weeks, you will be able to do 60fps with it and any server will be able to use it.
Well, it is nice to see you working on new great projects for Graal.
I've got a question, is the client for iOS and Android is going to be like the Graal PC client but an Android & iOS version?
Quote:
Originally Posted by unixmad
If anyone have fun projects like this, I will be happy to offer a free server to play with.
I'll shoot you an email once I've got spare time for this kind of Graal Projects.
If anyone have fun projects like this, I will be happy to offer a free server to play with.
A new client for iOS and Android is on testing and should be released in 3 weeks, you will be able to do 60fps with it and any server will be able to use it.