How do I draw on the canvas quickly

Get help using Construct 2

Post » Sat Aug 30, 2014 9:21 am

I'm developing a game in which drawing is the main mechanic. To this end, I'm using the canvas plugin from the forum. It was working just fine on PCs, but it's very laggy on phones. Since I'm using text boxes, I can't really go with cocoonjs (currently using phone gap), so I'm not sure what to do. @Ashley mentioned in another thread that the latest iOS and Android releases would run much faster, but I'd like to see if I'm over complicating the matter first. I've got about a half second of lag on phones for drawing and I'd like to pull that down significantly. Any ideas? I can post a capx if that would help.
B
4
S
1
Posts: 35
Reputation: 420

Post » Sat Aug 30, 2014 6:06 pm

Would using a completely different method like this work for your intentions?

https://dl.dropboxusercontent.com/u/485 ... ample.capx

You could ofcourse also search for alternatives to textboxes on the forums..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Aug 30, 2014 10:19 pm

Hi @gizmodude4,

If you are an iOS developer, you can download iOS 8 beta 5 and test your game on it right now if you want.
B
14
S
7
G
3
Posts: 145
Reputation: 3,035

Post » Thu Sep 04, 2014 4:01 am

Thanks @Sebastian. I don't have a piece of hardware that can use iOS8, but hopefully I'll get my hands on one eventually.

Thanks for the suggestion @LittleStain, but that demo also runs kinda slowly on my phone. It also doesn't have the ability to change colors, so I couldn't use it without WebGL anyway. And I know about the alternative to textboxes, but they're all rather clunky. If the next OS update doesn't have a big impact on how it performs, I'll try it out and see what I can do
B
4
S
1
Posts: 35
Reputation: 420

Post » Thu Sep 04, 2014 6:37 am

I don't think you should hope for OS updates to help your game go faster if you want your game to be played by as many players possible..
Have you checked through the debugger to see what takes the most amount of resources?

If the textbox solutions are clunky, maybe you could try to unclunk them.. :)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Sep 04, 2014 10:23 am

For android, you could evetually try crosswalk to see if the result is smoother or not (for iOS though, only phonegap and the html5 direct export supports textboxes).

Also I could be wrong, but I think the canvas plugin is actually faster with webGL disabled
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
52
S
22
G
18
Posts: 2,122
Reputation: 17,093

Post » Thu Sep 04, 2014 9:24 pm

Really? Where did you see that? I can disable it temporarily until the native browsers in Android/iOS are updated to support webGL and the OSs are proliferated if that's the case
B
4
S
1
Posts: 35
Reputation: 420


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], marc254 and 5 guests