Code Monkey home page Code Monkey logo

Comments (7)

kylemcdonald avatar kylemcdonald commented on May 13, 2024

maskedBlur is necessarily a resource-intensive operation. on modern machines it should not be a problem, but on older machines, or machines where the GLSL it is emulated in software, you will have a problem.

i recommend trying the CPUCloning example instead, and then rewriting the CloningWrapper to use the CPU.

from facesubstitution.

shaohuawan avatar shaohuawan commented on May 13, 2024

Thanks for your reply.
My machine is a 3.8GHz machine with a 8Gb RAM. And it has a Intel Core i7 Processor. It is a really powerful machine. I don't know why the program runs so slow on it.
Anyway, how to determine GLSL is emulated in software?

In addition, the CPUCloning example runs very fast.

from facesubstitution.

kylemcdonald avatar kylemcdonald commented on May 13, 2024

if you have a computer that has a switchable graphics card, it could be using the slower of the two.

or if the GLSL shader is using a feature that is not supported by the graphics card, then it could be falling back to emulation mode.

normally on OSX i use the opengl shader builder to let me know whether it's running in software mode or not. if you're on linux or windows, i'm not sure which tool to use.

maybe this line is confusing your graphics card:

#extension GL_ARB_texture_rectangle : enable

you could try removing that.

sorry i can't be more help!

from facesubstitution.

shaohuawan avatar shaohuawan commented on May 13, 2024

Thanks anyway. I will try. :)

from facesubstitution.

shaohuawan avatar shaohuawan commented on May 13, 2024

Problem solved!
After I install a new driver for my graphic card, my program now runs perfectly smooth. Thanks!
My graphic card is GeForce GT 530. The old driver version number was 8.17.12.6795. After I install a new driver for my machine, now it works flawlessly.
Thanks!

from facesubstitution.

kylemcdonald avatar kylemcdonald commented on May 13, 2024

hey great to hear! maybe post a link to the new graphics card driver, in case someone else has the same problem? then they can find the answer faster.

from facesubstitution.

shaohuawan avatar shaohuawan commented on May 13, 2024

If you are using Ubuntu 11.10, then by default the proprietary graphics driver are not loaded. You have to load it manually in order for the graphic card to work properly. Here is how to do it.

  1. Choose "Additional Drivers" from "System Settings";
  2. Choose "NVIDIA accelerated graphics driver(post-release updates)(version current-updates)" from "Additional Drivers";
  3. Click "Activate"
    Then we are done.

from facesubstitution.

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.