So I watched this movie a while ago about this dude who is some sort of police officer or something like that. I don't remember the specifics but I think people were implanted with some sort of a chip or given some sort of a drug to distort their reality. For instance, I remember this one scene where he and another dude are getting food, and he has these flashes while looking at the burger. In one second he sees it like everyone else, meaty, nice, and fresh, and all of a sudden it's rotten and full of worms. It freaks him out but no one else but him sees it that way.
After some events he is saved/kidnapped by these "resistance" people who remove the chip or remove the mind altering chemicals and show him the real world and explain that they are the few who refuse to live a lie and they want to expose the truth to the rest of the people.
I only remember the ending scene where they turn off the whatever was causing the simulation and you see the whole city becoming ruined and post apocalyptic.