Arima's Forum Posts

  • Pixel shaders are intensive even on desktop gpus. There are some differences you should be aware of:

    Mobile gpus use a fixed structure where a shader processing unit can only perform one task. On desktop gpus, they can perform multiple tasks. This means that mobile devices have even weaker pixel shader performance than you'd expect comparing the GFLOPS, and 3dmark, as I understand it, isn't a good measure for just comparing pixel shader performance alone.

    Tegra 3 has 12 shader units, 8 are for pixels, 4 are for vertex (12 GFLOPS, 1.04 gigapixels per sec pixel fill rate)

    Tegra 4 essentially has 72, 48 are pixel shaders and 24 are vertex units (43.2 GFLOPS, 2.68 gigapixels per sec pixel fill rate)

    iPhone 5s - couldn't find number of shader units, but performs at 76.8 GFLOPS

    My 9800gt has 112 multipurpose units (504 GFLOPS, 9.6 gigapixels per sec pixel fill rate)

    This means that even top level mobile gpus still don't even come close to my 9800gt, which is basically a rebranded 8800gt, that was released in 2007. A tegra 4 has less than 9% of the GFLOPS, compounded by the fact that 1/3 of its shader units can't be used for pixel shaders. They might seem powerful lately, but mobile gpus are really still quite weak.

    As I recall, my 9800gt can't even handle somewhere around 50 small sprites with the tint effect applied to them at 60 fps. Pixel shaders are crazy intensive, so it's no surprise that mobile can't handle them all that well.

  • Yeah, it could potentially be running out VRAM, for example. I was getting pauses for a while when I didn't realize I had accidentally asked my computer to use more VRAM than it actually has, and so node webkit had to pause to swap data from disk whenever something it didn't have in VRAM came on screen. Once I fixed that, I haven't had a pause since.

  • Yes, c2 uses v8 and garbage collection, there's no way for html5 games to not use it on chrome and node webkit.

  • Aurora Australis

    Yeah, as mentioned above I'm pretty sure I can get it as I imagine it on my computer. I was saving it for the next monthly update, but I might as well mention now that I've got a dynamic system set up that enables and disables physics based upon units' proximity to each other, and that plus other optimizations has saved a bunch of CPU time, so I think I might be able to leave physics in.

    Either way, I decided that it wasn't important for the proof of concept demo, so have moved on to getting the other parts of the game done instead.

  • luisgmolina thanks, no demo yet, got a ways to go before it's ready. Most of the character and enemy abilities are done, most of the remaining tasks are animations, the level editor, putting the level together, dynamic level loading and the interactive level pieces themselves (doors, etc). This is a pretty complex part of it so I don't know how long it will take.

  • You do not have permission to view this post

  • I've wrangled with this problem in the past as well. I find it's especially noticeable with a black background and trying to make trails that fade to transparent.

    If it's a rounding problem, could a float with higher precision be used behind the scenes to represent the color instead, and it would only round the value when determining what color to set the pixel to, but still leave the precise float behind for any later calculations?

  • Please be careful not to create multiple threads for the same topic.

  • Why not just use the sprite font? It does exactly what you're asking for and more.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Importing via that method does in fact work. Thanks for pointing that out, Katala!

  • Yeah, I have to assume that the reason people keep using forum spam is it generates at least some traffic or improves their google rank through seo, also it's cheap since most of them are bots.

    It's probably harder to quantify the number of users it annoys and makes decide never to do business with them because I'm not sure if I've seen any spam we've ever gotten that I would have had any interest in, and I suspect that's the case for most users here. I also wonder what the affect of people posting to their Facebook wall has.

    "Hay peeps I know this forum has nothing to do with this stuff but who wants some bananas from the republic to put in yo new kitchen while wearing your ugh boots that are covered in virtual gold that makes ppl say WOW"

    I mean, I dunno about anyone else, but that didn't endear me to any companies even before I became a moderator.

  • Tom - I'm not staying logged in on the arcade either. I click login and it takes me back to the main page as well. This means I can't delete anyone's arcade games currently.

    HenerzH Tom is working on a new version of the arcade which will enable you to do so.

  • Btw, animated gifs can be imported without any extra work to some extent. Simply drag a gif from the windows explorer to the C2 layout. It appears as a new sprite with all the animation frames as an animation.

    I understand this won't be as helpful as it could be though as it puts all the frames into a new sprite and you can't copy and paste all the frames at once from one object to another, but maybe it will save you some work on the initial import.

  • Please be careful not to make multiple threads for the same topic.