00Rez's Forum Posts

  • Not sure if this has been mentioned but when I rename an image point I can't type "c" instead it just centres the point.

  • All tests are FF 6.0.2 - don't use any other browser.

    Rad=4 65-60FPS

    Rad=7 44-60 FPS

    Rad=10 21-40 FPS

    Rad=12 15-28 FPS

    Well, seems effects lower fps such as additive or xor.

    The number of blocks which show the light effects the fps.

    When all these are removed the fps stays high!

    Don't know what to do about this unless I can find a less demanding way of rendering the light... <img src="smileys/smiley5.gif" border="0" align="middle" /> Think I'll tidy it up and just release it and see if anyone else can come up with a good way to render...

  • Bizarre. I'm getting 7 FPS ??!?? Can't explain why - nothing else running :(

    Win XP SP3,AMD 64 6000+ 3.11 GHz, FF 6.0.2.

    Checking Process Explorer, FF uses over 50% of CPU whilst running this latest example.

    I've update the original post with a example to test the fps at different radi. Can you post your fps at each? (and browser)

  • Wow, not sure what you changed, but in your new example I'm getting a rock solid 60 FPS in FF 6, and that's with youtube and stuff open in other tabs... awesome!

    That's more like it!

  • I've uploaded that example now!

  • In your latest example I'm getting a steady 35 FPS in FF 6.01 and a steady 48 FPS in IE9.

    This is on an i7 930, 6gb RAM, ATI 5870 and Win 7 64 bit.

    Great work by the way, looking forward to the release!

    Thanks! The plugin running the calculations without rendering the shadows etc runs at 60fps so the actual performance is really good just can't seem to increase the rendering speed of the shadow <img src="smileys/smiley7.gif" border="0" align="middle" />. I know eventually rendering will be alot faster and WebGL will pop up at some point...

    Currently fixing some small bugs, cleaning the code. It will probably be a behaviour attached to objects so you can have more than one light/sight.

    Here's another example I'm working on:

    <img src="http://dl.dropbox.com/u/19078872/test.png" border="0" />

  • > 00Rez

    > about 35 - 45 fps [chrome 14 - mac osx snow leopard - mbp 17]

    >

    > i have oodles of d&d dungeons on paper from 85' waiting for this plugin...lol.

    >

    > yes, they smell funny.

    Haha, wey eventually I'd like to make a dungeon generator to go with this, a container system (which I've actually done) and some ai plugins. D&D all over! Hopefully Zack has the function plugin sorted and when the family update arrives!! Anyway I *hope* to have a plugin to help everyone eventually! <img src="smileys/smiley2.gif" border="0" align="middle" />

    Actually this is quite low fps, I ran this on my work computer and it ran at 50-60fps. Running on my laptop which is faster!? runs at 10fps! Need to look into this!

  • Is there a way to pause when a game loses focus?

  • 00Rez

    about 35 - 45 fps [chrome 14 - mac osx snow leopard - mbp 17]

    i have oodles of d&d dungeons on paper from 85' waiting for this plugin...lol.

    yes, they smell funny.

    Haha, wey eventually I'd like to make a dungeon generator to go with this, a container system (which I've actually done) and some ai plugins. D&D all over! Hopefully Zack has the function plugin sorted and when the family update arrives!! Anyway I *hope* to have a plugin to help everyone eventually! <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Hopefully have a plugin release soon. I want to make it as user friendly as possible!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hey 00rez

    On your latest test I averaged about 30FPS, and that's on FF 6.02

    Great work!

    Good! This is real time as well. What type of pc do you have? Low, medium, high spec? I suppose as time goes by browsers will get faster...

    Edit: I have an average of 60 fps with the latest exported example I linked!

  • Here's my progress:

    This shows pretty much how the Events will work:

    <img src="http://dl.dropbox.com/u/19078872/gist.png" border="0">

    And this is the latest example!

    This example is 40x40 and calculates real time! Move the purple block with the arrow keys!

    Edit: The example now only renders lit cells surrounding the Purple player. The grid is 60x60 with the sight radius of 6! I get about 30 fps which is pretty good at 60x60 cells. For some reason the "light" is brighter when exported?

  • Good work. Running 60 fps in the 40x40 cells demo, needing 1.5 seconds to re-calculate.

    I don't know your algorithm, but make it flexible enough to only calculate rows and columns, instead of the whole scene. Then, while moving the camera only calculate the next one or two (depends on the speed of the camera movement) rows/columns.

    If the camera goes to the right, you only need to calculate one or two columns to the right, if the movement hits the next column (grid-based, in this case column 41 would be needed, etc.). Same for all other directions. The heaviest impact would be a diagonal movement, where both, row and column needs to be calculated.

    EDIT: Forget about it. Was writing quicker than thinking. It doesn't solve the problem of light cells that may influence the rows/columns. Sorry.

    No worries. I've noticed I can use a real time method which doesn't impact performance as much as long as the "radius" of light is limited. My algorithm is just BASIC fov so it sends rays out. Limiting the rays to a certain length increases speed alot. The only problem I'm having is I've created a "list" to hold all "lit" cells instead of having to iterate through all which slows it right down on large grids! The problem I'm having at the moment is overlapping which adds the same positions to the list, I need a way to make sure only one position is added and no duplicates. <img src="smileys/smiley5.gif" border="0" align="middle" />

  • Getting there! Went back to real time calculation which is actually really fast. Made it so you can limit the radius which speeds things up. Currently working on a method to make finding lit/seen cells faster (for rendering)... <img src="smileys/smiley23.gif" border="0" align="middle" />

  • Fixed the assertions.. I forgot they were there. The assertions didn't show up for me when I was testing them, weird. Downloads updated.

    >

    > When exported the functions don't work. <img src="smileys/smiley19.gif" border="0" align="middle" />

    Are you using them correctly? They worked perfectly for me when I tested them <img src="smileys/smiley5.gif" border="0" align="middle" />

    Not sure. I'll re-download and test. I put a right mouse click event with some sub events into a function. Basically it created an object when right clicking. Worked in the preview but didn't when it was exported. I'll retry tonight see if I missed something. Anyways great plugin Zack!