About Monkey 2 › Forums › Monkey 2 Development › Target color matching problem.
This topic contains 8 replies, has 2 voices, and was last updated by
Jesse
2 years, 6 months ago.
-
AuthorPosts
-
October 1, 2016 at 2:37 am #4192
I just installed the emscripten target and the color matching is completely off. the empscript still give several inconsistencies.
two images follow the first is from the desktop target and the other is from the emscripten target. the edge on the clouds and the mountain is a stretched, rotated and tinted by Color white image.
I also noticed that the new mojo graphics run a bit slower in debug mode regardless of target; About 30% slower as compared to the previous version. it’s no longer playable with my particle explosions in debug mode.
Attachments:
October 1, 2016 at 4:07 am #4195Source code?
October 1, 2016 at 4:32 pm #4203October 1, 2016 at 8:59 pm #4215Ok, think I’ve fixed the color problem. Haven’t updated github yet though, other stuff currently in progress.
The debug slowdown is a bit weirder, although the new version is doing more ‘validation’ (in order to reduce rendering) so it might be that.
A quick fix might be to set the emscripten optimization options in env_windows.txt (or whatever) to -02. It’s currently -O0 which means no optimizations, but I only changed it to this from -O2 a while back to test something so it should be -O2 anyway.
After this, you’ll need to rebuild all emscripten modules and delete your .build dir before rebuilding. Speeds things up considerably here.
Am loving this game too!
October 1, 2016 at 10:16 pm #4216Thanks Mark.
I am not concerned with the speed of the enscripten target I was expecting it to be a bit slower. I was concerned with the speed difference in the desktop target. I figured that if I could keep about 55fps it would be ok in release mode but now I can’t be sure anymore. and it’s going to be a bother to be checking release mode every time I want to check it’s performance.October 2, 2016 at 1:54 am #4217what’s with the printing of “Flush!” over and over. I think it might have something to do with the slowdown. Does it in debug and release mode.
release mode seems to be slow also.October 2, 2016 at 2:23 am #4218Yes, that “Flush!” shouldn’t be there either – try removing it from canvas.monkey2.
October 2, 2016 at 2:34 am #4219I did but didn’t help much. it is still quite a bit slower than the previous version.
October 2, 2016 at 5:05 am #4220I went from using DrawImage, to using DrawRect to draw the images and it has improved the speed significantly not as fast as the original but pretty close now. it’s doable. I am wondering if the Image class or DrawImage is the cause of the slowdown.
-
AuthorPosts
You must be logged in to reply to this topic.

