Giter Site home page Giter Site logo

Comments (11)

etorth avatar etorth commented on May 20, 2024

True, no point to compress single PNG.
Actually this class is still half done, I didn't pay much attention to it for a relative long time.

I planned to make PNGs compressed with dictionary.
Because most PNGs are small, but they shall some similarity, use a well-training dictionary shall help a lot.

from mir2x.

Voyager1th avatar Voyager1th commented on May 20, 2024

我想请教一下关于绘制地图上的问题,我用平滑移动方式绘图,但是绘制到建筑的影子的时候会出现阴影闪烁的问题,不知道是哪里问题
绘制代码
http://cdn.vvxy.cn/downloads/demo.avi

from mir2x.

etorth avatar etorth commented on May 20, 2024

Can not access your video file.
But most likely same issue I used to see, not coding issue, I guess it's caused by screen resolution.

setup your monitor to lower resolution (800x600), then it will be good.
It's an old game.

from mir2x.

Voyager1th avatar Voyager1th commented on May 20, 2024

就像这样的。房子的影子会 红绿蓝交替闪烁。
https://github.com/etorth/mir2x/assets/57646967/28350244-eb3c-4190-8309-d157aa821e84
分辨率不会影响这个问题,滚动地图的时候就会出现。

from mir2x.

etorth avatar etorth commented on May 20, 2024

I also saw this in other implementation.
My feeling is for sure it's not a coding issue, I don't have a good solution.

In mir2x I just de-mosaic by following function:

inline void removeShadowMosaic(uint32_t *data, size_t width, size_t height, uint32_t shadowColor)

from mir2x.

Voyager1th avatar Voyager1th commented on May 20, 2024

谢谢,处理后效果好多了,但是还是有一些小块的闪烁,我再去想想办法完善一下。

from mir2x.

etorth avatar etorth commented on May 20, 2024

谢谢,处理后效果好多了,但是还是有一些小块的闪烁,我再去想想办法完善一下。

My experience is if the project is still in its initial stage, I usually doesn't pay much attention to this kind of fine art things.

from mir2x.

Voyager1th avatar Voyager1th commented on May 20, 2024

是的,细节后面再完善,只是我每次测试的时候眼睛都快被闪瞎了,看代码都模糊了,所以就先处理一下

from mir2x.

etorth avatar etorth commented on May 20, 2024

是的,细节后面再完善,只是我每次测试的时候眼睛都快被闪瞎了,看代码都模糊了,所以就先处理一下

oh you can compile and run with windows now ?

from mir2x.

etorth avatar etorth commented on May 20, 2024

是的,细节后面再完善,只是我每次测试的时候眼睛都快被闪瞎了,看代码都模糊了,所以就先处理一下

I didn't optimize any for text print, slowing down is expected.
will work on it later, currently every character get rendered individually, pretty slow and naive.

from mir2x.

Voyager1th avatar Voyager1th commented on May 20, 2024

是的我在Windows下编译成功了,但是 这套UI绘制文本有问题,FPS不到60,我借用了你的SDLDevice 自己重写了一套(我不懂DX这些,让你见笑了)。性能还可以,GT1030显卡下,FPS能到 800.

from mir2x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.