Target color matching problem.

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.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #4192

    Jesse
    Participant

    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.

    #4195

    Mark Sibly
    Keymaster

    Source code?

    #4203

    Jesse
    Participant
    #4215

    Mark Sibly
    Keymaster

    Ok, 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!

    #4216

    Jesse
    Participant

    Thanks 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.

    #4217

    Jesse
    Participant

    what’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.

    #4218

    Mark Sibly
    Keymaster

    Yes, that “Flush!” shouldn’t be there either – try removing it from canvas.monkey2.

    #4219

    Jesse
    Participant

    I did but didn’t help much. it is still quite a bit slower than the previous version.

    #4220

    Jesse
    Participant

    I 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.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.