opengl+gel.world: Performance mods.
This commit is contained in:
@@ -546,8 +546,8 @@ is
|
||||
is
|
||||
use type remote.World.sequence_Id;
|
||||
|
||||
all_Sprites : constant id_Maps_of_sprite.Map := Self.all_Sprites.Map.fetch_all;
|
||||
the_Id : gel.sprite_Id;
|
||||
all_Sprites : id_Maps_of_sprite.Map renames Self.all_Sprites.Map.fetch_all;
|
||||
the_Id : gel.sprite_Id;
|
||||
|
||||
begin
|
||||
if seq_Id > Self.seq_Id.Value
|
||||
@@ -624,9 +624,9 @@ is
|
||||
use id_Maps_of_sprite;
|
||||
|
||||
-- all_Sprites : constant id_Maps_of_sprite.Map := Self.id_Map_of_sprite;
|
||||
all_Sprites : constant id_Maps_of_sprite.Map := Self.all_Sprites.Map.fetch_all;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
the_Sprite : gel.Sprite.view;
|
||||
all_Sprites : id_Maps_of_sprite.Map renames Self.all_Sprites.Map.fetch_all;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
the_Sprite : gel.Sprite.view;
|
||||
|
||||
begin
|
||||
while has_Element (Cursor)
|
||||
|
||||
@@ -168,8 +168,8 @@ is
|
||||
use id_Maps_of_sprite,
|
||||
remote.World;
|
||||
|
||||
all_Sprites : constant id_Maps_of_sprite.Map := Self.all_Sprites.fetch;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
all_Sprites : id_Maps_of_sprite.Map renames Self.all_Sprites.fetch;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
|
||||
|
||||
the_Sprite : gel.Sprite.view;
|
||||
|
||||
@@ -615,8 +615,8 @@ is
|
||||
is
|
||||
use id_Maps_of_sprite;
|
||||
|
||||
all_Sprites : constant id_Maps_of_sprite.Map := Self.all_Sprites.fetch;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
all_Sprites : id_Maps_of_sprite.Map renames Self.all_Sprites.fetch;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
|
||||
the_sprite_Transforms : sprite_transform_Pairs (1 .. Natural (all_Sprites.Length)) := (others => <>);
|
||||
Count : Natural := 0;
|
||||
@@ -959,9 +959,9 @@ is
|
||||
declare
|
||||
use id_Maps_of_sprite;
|
||||
|
||||
all_Sprites : constant id_Maps_of_sprite.Map := Item'Class (Self).all_Sprites.fetch;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
the_Sprite : Sprite.view;
|
||||
all_Sprites : id_Maps_of_sprite.Map renames Item'Class (Self).all_Sprites.fetch;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
the_Sprite : Sprite.view;
|
||||
begin
|
||||
while has_Element (Cursor)
|
||||
loop
|
||||
@@ -1036,11 +1036,11 @@ is
|
||||
use id_Maps_of_sprite,
|
||||
lace.Text;
|
||||
|
||||
all_Sprites : constant id_Maps_of_sprite.Map := Item'Class (Self).all_Sprites.fetch;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
the_Pairs : remote.World.sprite_model_Pairs (1 .. Natural (all_Sprites.Length));
|
||||
the_Sprite : Sprite.view;
|
||||
i : Natural := 0;
|
||||
all_Sprites : id_Maps_of_sprite.Map renames Item'Class (Self).all_Sprites.fetch;
|
||||
Cursor : id_Maps_of_sprite.Cursor := all_Sprites.First;
|
||||
the_Pairs : remote.World.sprite_model_Pairs (1 .. Natural (all_Sprites.Length));
|
||||
the_Sprite : Sprite.view;
|
||||
i : Natural := 0;
|
||||
begin
|
||||
while has_Element (Cursor)
|
||||
loop
|
||||
|
||||
Reference in New Issue
Block a user