Evacuation simulations allow to consider preventive measures against possible emergency scenarios. We have developed a simulation model that takes into account not only the characteristics of the environments but also is able to represent social behaviours that would render our models more accurate and realistic. The proposed model has a hybrid structure where the dynamics of fire and smoke propagation are modelled by mean of Cellular Automata and for simulating people's behaviour we use Intelligent Agents. In this paper, a behaviour in panic situation is added to the existing ones. Moreover, as main contribution, this paper explains the implementation of the model in which we apply a functional decomposition in order to accelerate the simulation and take advantage of current computer architectures.